Slow ssh on Ubuntu.

Ok, really, no one is going to be interested in this, but I wanted to put it somewhere I won’t forget.

I’ve been having trouble with ssh sessions taking 2 or 3 minutes to connect and ask for the password – which is intolerable when the computer on the other end has a 2-3 minute time out.  Turns out there’s a very simple solution:

sudo nano /etc/ssh/ssh_config

find the following two lines:

GSSAPIAuthentication yes
GSSAPIDelegateCredentials no

Comment those two lines out, which should look like this:

# GSSAPIAuthentication yes
# GSSAPIDelegateCredentials no

Tada – no more slow ssh!