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
6 comments for this entry:
Leave a Reply
You must be logged in to post a comment.
April 2nd, 2009 on 6:41 pm
Perfect thanks!
January 5th, 2010 on 11:40 pm
This doesn’t work for me with Ubuntu 8.10. However this solution did work (but be careful, the config file lines that have to be commented out may appear multiple times):
http://www.ubuntugeek.com/fix-for-ssh-slow-to-ask-for-password-in-ubuntu-feisty-fawn.html
February 6th, 2010 on 2:14 pm
Worked for me! Thanks.
February 12th, 2010 on 9:11 pm
Saved, thanks!
September 28th, 2010 on 4:57 am
After change in configuration file, it working fine, and ssh very fast working
September 28th, 2010 on 4:58 am
Thanks