If SSH login is very slow in CentOS 6 it’s because they have added another security feature, the SSH server will do a reverse DNS again for any incoming connection, this will delay connection up to 13 seconds, to avoid this:
1. Access the server
2. Edit the ssh config
Nano /etc/ssh/sshd_config
3. Look for use dns and change it to no
Ctrl +w, usedns, enter
Change it from
#useDNS yes
to
useDNSÂ no
4. Save and close
Ctrl + X, Y, enter
5. Restart the sshd service
Service sshd restart
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed