Slow SSH in Ubuntu (speeding it up)
Some servers I was using today had very slow SSH logins. The username prompt came up immediately but there was about 30 seconds of delay before it showed password prompt.
Solution was to edit the file /etc/ssh/sshd_config to turn off DNS check:
sudo vi /etc/ssh/sshd_config
Add line at end:
UseDNS no
Then restart SSH daemon:
sudo /etc/init.d/ssh restart
Discussion thread I pulled this from here: Slow SSH login — Ubuntu