亚马逊云EC2服务器轻量使用ROOT登录方法
先使用亚马逊网页登录ssh,然后输入命令
然后
# 切换到root
su root
# 修改sshd配置文件
vi /etc/ssh/sshd_config
# 需要修改的内容
PasswordAuthentication no =》 把no 改为 yes
PermitRootLogin =》改成 PermitRootLogin yes
保存修改后,重启ssh服务
# 重启服务
sudo service sshd restart
就可以登录了