Page 1 of 1

slow ssh connections?

Posted: Wed May 16, 2007 12:41 am
by lambda
if you've noticed a slowdown in making ssh connections with newer distributions, and if "ssh -v somehost" says something about a missing credentials cache, look in /etc/ssh/ssh_config for

Code: Select all

GSSAPIAuthentication yes
GSSAPIDelegateCredentials no


turning them off will speed things up considerably. stick something like this into your ~/.ssh/config file:

Code: Select all

Host *
        GSSAPIAuthentication no
        GSSAPIDelegateCredentials no


you could change /etc/ssh/ssh_config, but your changes might be overwritten by the next install/upgrade of the openssh-client package.

note that this only speeds up the connection process, not the connection itself. you can make your connection a bit faster on slow links (like dialup) with compression:

Code: Select all

Host *
        Compression yes

Posted: Wed May 16, 2007 1:40 am
by hameedkhan
Thanks lambda, this was really helpful for me.

Thanks once again.

nice one

Posted: Mon Jun 18, 2007 4:23 am
by salmanslick
hope this helps !!!!

Posted: Mon Jun 18, 2007 1:07 pm
by lambda
what's there to hope for? it works.