找到/etc/ssh/sshd_config文件中的 PasswordAuthentication no 改为PasswordAuthentication yes 并保存。 重启ssh服务:sudo service sshd restart
/etc/ssh/sshd_config
PasswordAuthentication no
PasswordAuthentication yes
sudo service sshd restart