打開sshd配置文件 vim /etc/ssh/sshd_config 在最後面增加一行 :
PermitRootLogin without-password
保存配置文件後重啓sshd服務service sshd restart