// 修改配置文件
root@localhost:~# vi /etc/ssh/sshd_config
root@localhost:~#
// 注释调原来的,改成新的 ‘yes’
# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
// 重启ssh服务
root@localhost:~# service ssh restart
root@localhost:~#
原文地址:http://huangchao.blog.51cto.com/10446378/1671358