亚马逊AMS使用ROOT+密码登陆方法

1、先用AMS的密钥对登陆;
2、执行

sudo passwd root

为root用户设置密码;
3、执行su输入密码,切换到root用户,然后

sudo passwd ubuntu

为ubuntu用户设置好密码;
4、

sudo chmod 777 /etc/ssh/sshd_config

为sshd_config配置文件设置权限;
5、

vi /etc/ssh/sshd_config

打开sshd_config配置文件;
6、找到PasswordAuthentication,值改为yes;
7、找到PermitRootLogin,值改为yes;
8、

sudo chmod 644 /etc/ssh/sshd_config

9、service sshd restart重启sshd服务或者重启VPS,大功告成!

赞助作者:

支付宝打赏!                     微信打赏

原创声明: BD6MM 原创文章,转载必须以链接形式标明出处。

本文链接: https://bd6mm.cn/blog/2016/09/%e4%ba%9a%e9%a9%ac%e9%80%8aams%e4%bd%bf%e7%94%a8root%e5%af%86%e7%a0%81%e7%99%bb%e9%99%86%e6%96%b9%e6%b3%95.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注