1.sudo vi /etc/ssh/sshd_config
2.将#PasswordAuthentication yes变成PasswordAuthentication yes
3.重新启动sudo systemctl restart sshd
待重启过后就可以使用远程连接。
本文介绍了如何修改SSH配置文件`/etc/ssh/sshd_config`,将`PasswordAuthentication`设置为`yes`,以便启用远程登录。步骤包括编辑配置、重启SSH服务,并在完成这些操作后能够成功进行远程连接。
1.sudo vi /etc/ssh/sshd_config
2.将#PasswordAuthentication yes变成PasswordAuthentication yes
3.重新启动sudo systemctl restart sshd
待重启过后就可以使用远程连接。
1433

被折叠的 条评论
为什么被折叠?