应该是sshd的设置不允许root用户用密码远程登录
1、修改 vim /etc/ssh/sshd_config找到# Authentication:LoginGraceTime 120PermitRootLogin without passwdStrictModes yes改成# Authentication:LoginGraceTime 120PermitRootLogin yesStrictModes yes2、重启sshsystemctl restart sshd