内网ssh连接速度慢的问题解决

内网ssh连接服务器速度突然变慢,需要很久才能连接上,执行命令打开-v调试开关,发现有下面提示:

debug1: Next authentication method: gssapi-with-mic

debug1: Unspecified GSS failure. Minor code may provide more information

Cannot determine realm for numeric host address

网上搜索发现是由于dns解析出问题造成的,解决方式,

1. 修订resolve.conf 中dns服务器地址,换成正常速度快的

2. 关闭ssh连接时的dns解析,这里修改/etc/ssh/ssh_config 文件,关闭GSSAPI方式认证

GSSAPIAuthentication no

Popularity: 2% [?]

Random Posts

Comments

Comments are closed.