[root@localhost conf.d]# vim /etc/ssh/ssh_config
关闭SERVER上的GSS认证
GSSAPIAuthentication yes 改为 no
关闭DNS反向解析
UseDNS yes 改为 no
修改server上nsswitch.conf文件
[root@localhost conf.d]# vim /etc/nsswitch.conf
找到
hosts: files dns
改为
hosts:files
[root@localhost ~]#systemctl restart sshd
说明: GSSAPIAuthentication参数是用于Kerberos验证的,而对于绝大多数人来说,不可能使用这种验证机制的,所以要注意把他们停掉。然后重启服务会发现远程连接速度有明显提升