centos ssh连接慢的解决办法

来源:互联网 发布:知世喜欢小樱 编辑:程序博客网 时间:2024/04/29 19:38

ssh连接慢的主要原因是DNS解析导致
解决方法:

在ssh服务端上更改/etc/ssh/sshd_config文件中的配置为如下内容:
GSSAPIAuthentication no

UseDNS no
然后,执行/etc/init.d/sshd restart重启sshd进程使上述配置生效,在连接一般就不慢了。

0 0