Linux SSH连接缓慢
环境
CentOS 6.6 X86_64
诊断问题
ssh -v username@hostname
进行ssh连接,查看debug信息,看下哪个过程比较耗时间
修改ssh配置文件
vim /etc/ssh/sshd_config
修改GSSAPIAuthentication yes为GSSAPIAuthentication no
修改#UseDNS yes为UseDNS no
重启sshd服务
service sshd restart
CentOS 6.6 X86_64
ssh -v username@hostname
进行ssh连接,查看debug信息,看下哪个过程比较耗时间
vim /etc/ssh/sshd_config
修改GSSAPIAuthentication yes为GSSAPIAuthentication no
修改#UseDNS yes为UseDNS no
重启sshd服务
service sshd restart