$ ssh root@192.168.xx.xx
Permission denied (publickey,gssapi-with-mic).
报了这么个错,原因是我上次做测试时修改了/etc/ssh/sshd_config 中的"PasswordAuthentication"参数值为"no",修改回"yes",重启sshd服务即可。
service sshd restart
systemctl restart sshd.service
本文介绍了解决SSH登录时遇到的Permission denied错误的方法。该问题源于/etc/ssh/sshd_config文件中PasswordAuthentication参数被设置为no。通过将此参数改回yes并重启sshd服务即可解决。
$ ssh root@192.168.xx.xx
Permission denied (publickey,gssapi-with-mic).
报了这么个错,原因是我上次做测试时修改了/etc/ssh/sshd_config 中的"PasswordAuthentication"参数值为"no",修改回"yes",重启sshd服务即可。
service sshd restart
systemctl restart sshd.service
464
2万+
1万+
2541
27万+
3311

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