
解决ssh连接被拒绝Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
ssh localhost报错 Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
参考:https://phoenixnap.com/kb/ssh-permission-denied-publickey
有可能是被禁用了密码登陆
解决方式:
编辑 /etc/ssh/sshd_config文件,开启密码登陆,
将PasswordAuthentication设置成yes
将ChallengeResponseAuthentication设置成no
PasswordAuthentication yes
ChallengeResponseAuthentication no
如果 root 账号要启动密码登陆,要再加上
PermitRootLogin yes
重启sshd
sudo systemctl restart sshd
本文是原创文章,采用 CC 4.0 BY-SA 协议,完整转载请注明来自 KK元空间
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果