Apr 102010
SSH takes a long time to connect or log in
Answer
If you experienced slow SSH connect to a remote server, you can try to disable the reverse DNS lookup at the server.
1. Edit the sshd_config
# sudo vi /etc/ssh/sshd_config
2. Add the following line in sshd_config
UseDNS no
3. Restart sshd
# sudo /etc/init.d/ssh restart