ssh 建立连接很慢的问题
June 19th, 2009
如果发现 ssh 连接主机很慢,一般来说并不是公钥认证的过程耗时,最有可能的原因是 sshd 试图对 remote client address 做一次 DNS 反解析。
可以修改 /etc/ssh/sshd_config 文件,在文件最后加上一行(如果已存在 UseDNS 这个选择则修改)
UseDNS no
然后重启 ssh 即可
/etc/init.d/ssh restart
Recent Comments