How to Fix ssh Pausing When Connecting

At some locations you may find that ssh pauses somewhere around ten seconds between the connection and the login prompt. I find this happens on LANs where reverse DNS isn’t working right. (Such as when I’m playing with DNS at my office and break something. Did I admit to that? lol)

On the remote server, edit the SSH dæmon configuration file thus:

  1. $ sudo vim /etc/ssh/ssd_config
  2. Locate UseDNS.
  3. Change it to: UseDNS no
  4. Save the file and exit vim.
  5. Restart sshd. On CentOS 5:
    $ sudo /sbin/service sshd restart
This entry was posted in SysAdmin and tagged , , , , , . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">