sudo passwd root
su root
PasswordAuthentication no,把no改成yes
。输入vim /etc/ssh/sshd_config
sudo /sbin/service sshd restart
su root
passwd ec2-user
vi /etc/ssh/sshd_config
PermitRootLogin
这行改为PermitRootLogin yes
PasswordAuthentication no
改为PasswordAuthentication yes
UsePAM yes
改为UsePAM no
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。