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,
- sudo vim /etc/ssh/ssd_config
- Locate UseDNS.
- Change it to: UseDNS no
- Save the file and exit vim.
- Restart sshd. On CentOS 5: sudo /sbin/service sshd restart

Leave a Reply