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).

May 4, 2008 at 10:51 am by Stephane Kattoor
Category: Systems
Tags: , , , ,