sudo passwd root su root vi /etc/ssh/sshd_config 找到PasswordAuthentication no,把no改为yes sudo /sbin/service sshd restart