可能是你开始没有开启 SSH 服务
1, 修改 VIM /etc/SSH/sshd_config
找到 PermitRootLogin without passwd
改成 PermitRootLogin yes
2 然后重启 SSH
systemctl restart sshd
来源: http://www.bubuko.com/infodetail-3323100.html