Leif160519的blog Leif160519的blog

——————

目录
ping正常但是ssh到linux服务器很卡的解决方法
/    

ping正常但是ssh到linux服务器很卡的解决方法

ssh登录很慢的问题

1.关闭ssh DNS反向解析

 vi /etc/ssh/sshd_config

修改UseDNS no

2.关闭 GSSAPI 的用户认证

vi /etc/ssh/sshd_config

修改GSSAPIAuthentication yesno

综合命令为:

sed -i "s/#UseDNS yes/UseDNS no/g" /etc/ssh/sshd_config
sed -i "s/GSSAPIAuthentication yes/GSSAPIAuthentication no/g" /etc/ssh/sshd_config
echo -e '\033[1;31m 重启sshd服务 \033[0m'
systemctl restart sshd
systemctl status sshd

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题ping正常但是ssh到linux服务器很卡的解决方法
作  者Leif160519
出  处https://github.icu/articles/2019/09/06/1567760820705.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!