使用root登录修改/etc/ssh/sshd_configvim /etc/ssh/sshd_config#PasswordAuthentication yes # 改为 PasswordAuthentication yes重启ssh服务sudo service ssh restart搞定!