Skip to main content

slow ssh connections

(26 October 2012)

Problem

When I ssh login to a CentOS 6 system, it always takes around 30 second to log in.

Solution

CentOS 6 has enabled the reverse-DNS name lookup of IPs by default. To disable in /etc/ssh/sshd_config , set:

useDNS no