ssh登陆慢的问题

识别主机名时卡一下,关掉DNS选项:

root@ns-virtual-machine:~# grep -i dns /etc/ssh/sshd_config
UseDNS no

 如果还有问题,打开verbose模式查看原因。之前还遇到过下面的情况:

debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available

关掉gss相关的选项:

[root@VM000000518 ~]# grep -i gss /etc/ssh/sshd_config |grep -v #
GSSAPIAuthentication no
GSSAPICleanupCredentials no 
原文地址:https://www.cnblogs.com/hyang0/p/6479651.html