Linux SSH连接缓慢

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

猜你喜欢

转载自blog.csdn.net/tanweii163/article/details/50579759