Delay during a SSH connection

To resolve a delay on login into your server through SSH, do the following…

Edit the file /etc/ssh/sshd_config (on your server) and add the following setting:

UseDNS no

Then restart ssh daemon with (for example in Debian):

# service sshd restart

or

# service ssh restart

This is archived version of blog, preventing broken links. This version will stay online indefinitely.