原因:ssh未允许root远程登录 解决 vim /etc/ssh/sshd_config 将#PermitRootLogin prohibit-password改为 PermitRootLogin yes 保存,重启ssh服务 systemctl restart sshd