slow ssh connections?

Share your expert knowledge and show off your skills.
Post Reply
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

slow ssh connections?

Post 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
hameedkhan
Havaldaar
Posts: 141
Joined: Wed Apr 07, 2004 12:58 am
Location: Karachi, Pakistan

Post by hameedkhan »

Thanks lambda, this was really helpful for me.

Thanks once again.
Thanks,
Hameed U. Khan
Linux User #: 354374
salmanslick
Lance Naik
Posts: 22
Joined: Fri Apr 20, 2007 4:30 pm
Location: Law WhoR3
Contact:

nice one

Post by salmanslick »

hope this helps !!!!
0346-4718990 salman slick :P
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

what's there to hope for? it works.
Post Reply