ssh delays on trixbox

I had some ssh problems on my trixbox installations. Each time I try to connect to the trixbox using ssh I had some delay. The classical solution for this is to disable the reverse DNS lookups by changing the line in /etc/ssh/sshd_config to:

UseDNS no

But in this case, this didn`t solve my problem. I ran my connection wth verbosity.

ssh -vvv some.host.com

I had a delay in this step:

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

AFAIK, this is related to openssh kerberos authentication. This is something that I really really don`t need. So I disabled in /etc/ssh/sshd_config the lines:

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
#GSSAPICleanupCredentials yes

After the restart, there was no delay. ; ) Even with the “UseDNS yes”. 

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments »

 
  • Emre Saglam says:

    Good to know this in case you have a shared hosting. : )

  • Mike says:

    It helped me today.
    But the server on wich I connect was not mine and I can(t change this options in sshd_config.
    But It works by changing them on my client`s /etc/ssh/ssh_config (not sshd_config) …

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>