新配置的服务器 ssh连接linux 速度很慢 连接好几秒才连接成功
解决办法:
打开服务器端sshd配置文件 /etc/ssh/sshd_config 看是否有如下的两条配置条目
GSSAPIAuthentication no
UseDNS no
编辑配置文件
sudo vim /etc/ssh/sshd_config
查找关键字 GSSAPIAuthentication、UseDNS
/GSSAPIAuthentication
如果前面带有 ‘#’ 则去掉 # 改为 no
然后重新启动ssh服务
sudo service sshd restart