修改ssh服务配置文件
vim /etc/ssh/sshd_config
调整PermitRootLogin参数值为yes,如下:
# Authentication:
LoginGraceTime 2m
PermitRootLogin yes
StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
免密登陆
将PermitEmptyPasswords参数值改为 yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
重启ssh服务
service sshd restart # 或者
/etc/initd.d/sshd restart