Sunday 13 January 2013

Slow SSH login on CentOS

1. Make sure  /etc/hosts has an entry with your server’s external IP and hostname.
2. Edit the SSH server configuration file /etc/ssh/sshd_config and add (or change, if already present) the UseDNS parameter to read “no”. After that restart sshd:

#echo "UseDNS no" >> /etc/ssh/sshd_config
#service sshd restart


No comments: