- ssh -v localhost:使用-v参数进入调试模式:获得如下的Debug信息。
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_500' not found
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_500' not found - 进入root权限查看安全日志:tail /var/log/secure -n 20
- 原因是授权有问题
- 检查授权:ls -l authorized_keys
-rw-rw-r-- 1 hadoop hadoop 610 Aug 28 15:17 authorized_keys - chmod 600 ~/.ssh/authorized_keys
- 再次登录OK
配置 SSH 之后还需要输入密码issue
最新推荐文章于 2020-12-27 18:20:22 发布
本文详细记录了解决SSH连接过程中遇到的GSSAPI认证失败问题,通过检查授权文件、调整权限设置以及查看日志等步骤,最终成功解决了问题并重新实现了SSH连接。
3万+

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



