1.sudo vi /etc/ssh/sshd_config
2.将#PasswordAuthentication yes变成PasswordAuthentication yes
3.重新启动sudo systemctl restart sshd
待重启过后就可以使用远程连接。
1.sudo vi /etc/ssh/sshd_config
2.将#PasswordAuthentication yes变成PasswordAuthentication yes
3.重新启动sudo systemctl restart sshd
待重启过后就可以使用远程连接。