Tag: lookups
SSH Slow to respond for password input (timeout problems) Ubuntu Linux
by swicknire on Mar.14, 2009, under linux/ubuntu
If you find your SSH client is taking too long to connect (and ask you for the password), or you’re trying to SFTP and it’s timing out before the password prompt. It’s probably trying to do a DNS lookup!
It’s a quick and easy fix! Just edit the following file:
/etc/ssh/sshd_config
And add or change the following:
UseDNS no
Restart SSH
sudo /etc/init.d/ssh restart