vim /etc/ssh/sshd_config


找到


#PermitRootLogin prohibit-password


修改成


PermitRootLogin yes


重启ssh


service sshd restart