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