打开sshd配置文件 vim /etc/ssh/sshd_config 在最后面增加一行 :
PermitRootLogin without-password
保存配置文件后重启sshd服务service sshd restart