SSH slow to connect to a Solaris 10 host

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
[...]
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
debug1: Next authentication method: publickey
[...]

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
GSSAPIAuthentication no

in /etc/ssh/ssh_config (system global config file) or ~/.ssh/config (user specific config file).

5 thoughts on “SSH slow to connect to a Solaris 10 host”

  1. for me it was more useful to do it on the server side in /etc/ssh/sshd_config – same setting, works perfect. thx!

Comments are closed.