Friday, July 5, 2013

Resolve SSH login delay (how to disable gssapi authentication) on Ubuntu Linux

Have a problem to login a remote server via SSH, it takes very long to get the password prompt. Actually it is not a big pain due to normally I connect to the remote servers once and use this connection for whole day.

It is quite noisy if you have to build the connection very often or need to copy files onto/from these servers. To resolve it, just disabling the GSSAPI authentication in your SSH configuration.

# Edit your sshd_config
$ sudo vim /etc/ssh/sshd_config
# And find all configurations started with GSS, set them to no.

GSSAPIAuthentication no
GSSAPICleanupCredentials no

Done, and you wont need to wait more than 1 minute to get the password prompt.