编辑配置文件
sudo vi /etc/ssh/sshd_config
修改PasswordAuthentication 的值为true
PasswordAuthentication true
重启ssh服务
sudo systemctl restart sshd.service
编辑配置文件
sudo vi /etc/ssh/sshd_config
修改PasswordAuthentication 的值为true
PasswordAuthentication true
重启ssh服务
sudo systemctl restart sshd.service
转载于:https://my.oschina.net/u/2615530/blog/868654