SSH slow to connect to a Solaris 10 host

May 4th, 2008 by Stephane Kattoor

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

Tagged with:

Related Post

3 Responses to “SSH slow to connect to a Solaris 10 host”

  1. Preston L. Bannister Says:

    Make that:
    ~/.ssh/config
    instead of:
    ~/.ssh/ssh_config

    With the above correction, your hint was exactly what I needed.

    Thanks.

  2. Stéphane Kattoor Says:

    Hi Preston,

    Thanks for the correction, and glad this helped !

    Stéphane

  3. Bogdan Says:

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

Leave a Reply