linux 上ssh client连接其他linux服务器慢
[woap@webMain ~]$ ssh -p 24116 -v 10.10.5.16
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address
debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address
debug1: Unspecified GSS failure. Minor code may provide more information
debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address
debug1: Next authentication method: publickey
debug1: Trying private key: /home/woap/.ssh/identity
debug1: Trying private key: /home/woap/.ssh/id_rsa
debug1: Trying private key: /home/woap/.ssh/id_dsa
debug1: Next authentication method: password
从以上的输出可以看到耗时最长的就是Unspecified GSS failure的地方,这是因为验证的时候启用的GSSAPIAuthentication验证方式导致的。
1、临时解决添加参数ssh -p 24116 -o GSSAPIAuthentication=no root@10.10.5.16
2、vim /etc/ssh/ssh_config
GSSAPIAuthentication=no
浙公网安备 33010602011771号