应该是sshd的设置不允许root用户用密码远程登录
1、修改 vim /etc/sshd/sshd_config
找到
UsePAM yes
改为
UsePAM no
2、重启ssh
systemctl restart sshd