先修改root用户的密码 : sudo passwd root
修改ssh配置 :sudo vi /etc/ssh/sshd_config 找到 PermitRootLogin 这项 将其改为yes;
重启ssh服务 :sudo service restart ssh