The Blog

SSHD slow on login Posted on

Does the IP you’re connecting from have reverse DNS on it?

When you connect to SSH, By default it will try to do a DNS lookup on the IP connecting and if it can’t find a record it causes a long delay when logging in.

If you want you can disable sshd from doing a reverse lookup by setting

UseDNS no

In /etc/ssh/sshd_config and restarting sshd.

service sshd restart

This entry was posted in Linux. Bookmark the permalink.

Please Post Your Comments & Reviews

Your email address will not be published. Required fields are marked *



CAPTCHA
Change the CAPTCHA codeSpeak the CAPTCHA code