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).
Make that:
~/.ssh/config
instead of:
~/.ssh/ssh_config
With the above correction, your hint was exactly what I needed.
Thanks.
Hi Preston,
Thanks for the correction, and glad this helped !
Stéphane
for me it was more useful to do it on the server side in /etc/ssh/sshd_config – same setting, works perfect. thx!
Thanks! This is what exactly I’ve been looking for~ 😀
Thank you 🙂