1、修改配置文件、注释 PermitRootLogin without-password、添加 PermitRootLogin yes
vi /etc/ssh/sshd_config
#PermitRootLogin without-password PermitRootLogin yes
2、重启SSH
service ssh restart