$ sudo vi /etc/ssh/sshd_config #PermitRootLogin prohibit-password PermitRootLogin yes $ sudo passwd root $ sudo service ssh restart
然后root用户可以ssh登录了。