vim /etc/ssh/sshd_config
按i编辑插入
找到UseDNS
去掉前面的#号 改为 no
GSSAPIAuthentication
改为 no
然后:wq
保存退出
systemctl restart sshd
重启
vim /etc/ssh/sshd_config
按i编辑插入
找到UseDNS
去掉前面的#号 改为 no
GSSAPIAuthentication
改为 no
然后:wq
保存退出
systemctl restart sshd
重启
本文作者:浪子 @ 提剑追梦
本文链接:https://blog.imsun.org/blog/solution-to-slow-ssh-connection-of-centos-7/
本文标题:centos7 ssh连接慢的解决方法
本文版权:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!