SSH slow to connect to a Solaris 10 host
stephane
If you experience a slow SSH connection to a Solaris 10 host while after connection everything works fine, then read on !
First try to connect with the verbose option. If the output lines show something like this :
# ssh -v user@hostname<br /> [...]<br /> debug1: Next authentication method: gssapi-with-mic<br /> debug1: Unspecified GSS failure. Minor code may provide more information<br /> No credentials cache found<br /> debug1: Unspecified GSS failure. Minor code may provide more information<br /> No credentials cache found<br /> debug1: Unspecified GSS failure. Minor code may provide more information<br /> debug1: Next authentication method: publickey<br /> [...]
then you can try to prevent SSH from trying GSS API Authentication. Just add the the following option : ssh -o GSSAPIAuthentication=no -l user hostname
Alternatively, you can put:
Host hostname<br /> GSSAPIAuthentication no
in /etc/ssh/ssh_config (system global config file) or ~/.ssh/config (user specific config file).