兔八哥极品软件园    运行: 4870天 | 文章:640 篇 | 评论:1005 条 | 碎语:1条

亚马逊(amazon)启用root登录免key登录putty登录

作者:admin 发布于:2017-12-13 13:53 Wednesday


当你登录了ecs2之后,

此时先切换到root账户,输入命令

sudo -i
然后修改文件

nano /etc/ssh/sshd_config

PermitRootLogin yes //默认为no,需要开启root用户访问改为yes

PasswordAuthentication yes //默认为no,改为yes开启密码登陆ctrl + o 保存,ctrl + x 退出编辑
启用了root以后,还需要修改root的密码才能登录哦,
输入 passwd 然后连续两次输入新密码即可#restart sshd service
systemctrl restart sshd #centos 7 或者  service sshd restart 或者 /bin/systemctl restart sshd.service

/etc/init.d/ssh restart #ubuntu


Powered by 兔八哥极品软件 苏ICP备12049267号 sitemap