本帖最后由 牵网线的 于 2022-8-3 21:00 编辑
问题现象: 在客户服务器上部署新应用的时候发现连接ssh的时候出现问题,问题现象如下:
问题一ssh连接主机报错:
- /etc/ssh/ssh_config line 50: Unsupported option "gssapiauthentication"
复制代码问题二 重启sshd服务提示报错 - Starting sshd: /etc/ssh/sshd_config line 81: Unsupported option GSSAPIAuthentication
- /etc/ssh/sshd_config line 83: Unsupported option GSSAPICleanupCredentials
复制代码
原因分析: 主要还是要了解一下:GSSAPIAuthentication 这个设置项到底是什么作用了 ?? - 服务器端启用了GSSAPI。登陆的时候客户端需要对服务器端的IP地址进行反解析,如果服务器的IP地址没有配置PTR记录,那么就容易在这里卡住了。一般如果只是IP登录的话关掉就是了。。
复制代码
解决方法: 问题一 修改配置,关闭这个啥GSSAPIAuthentication - [root@localhost ~]# vim /etc/ssh/ssh_config
复制代码
问题二: 也一样,修改配置,关闭GSSAPIAuthentication这玩意 - [root@localhost~]# vim /etc/ssh/sshd_config
复制代码
改完配置重启一波服务就O了 - [root@localhost~]# systemctl restart sshd
复制代码
|