ssh连接慢的解决方法

星期六, 2014-02-22 | Author: Lee | linux | 143,982 views

电脑系统重新做了下,在虚拟机中装了centos6.4的系统做svn的版本控制和数据存储服务,采用ssh连接进行操作时候,每次用SecureCRT连接的时候都感觉好慢;

感觉很不正常,查了下解决办法为:

1.在ssh服务端上更改/etc/ssh/sshd_config文件中的配置为如下内容:
UseDNS no
# GSSAPI options
GSSAPIAuthentication no
然后,执行/etc/init.d/sshd restart重启sshd进程使上述配置生效,再连接就飞快了
主要是DNS解析的问题,把UseDNS 设置成no即可

Tags: ,

文章作者: Lee

本文地址: https://www.pomelolee.com/1284.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta