PDA

View Full Version : Slow login with SSH and FTP



thisone
11th September 2006, 06:36 PM
Hello,
Whenever I log on to my FC5 box from another PC through SSH or FTP, it takes a little while.

SSH:


login as: mythtv
(waits 10 seconds)
mythtv@192.168.0.2's password:


FTP:


Command: USER mythtv
Response: 331 Please specify the password.
Command: PASS ***********
(waits 10 seconds before it connects).


This does not happen with VNC or HTTP. And it doesn't happen when logging on locally.

Does anyone know what's wrong? Thanks in advance.

Zipster
12th September 2006, 12:08 PM
Add the clients hosts in /etc/hosts on the server.

That can solve your problem.

thisone
12th September 2006, 01:19 PM
Thanks, that solved the problem.

Do you know why this happens? It's pretty annoying having to enter lots of dynamic internal IPs in /etc/hosts. :)

Sir Igor
25th June 2008, 04:03 PM
Sorry to pump up this old thread, but I have exactly the same problem.
However, adding my client in /etc/hosts didn't solve the issue.

contens of /etc/hosts

127.0.0.1 localhost.localdomain localhost localhost
::1 localhost6.localdomain6 localhost6
192.168.254.2 server

thisone
25th June 2008, 04:33 PM
Hi.

I only added my IP as an entry, no host name.

If I recall correctly, I think I managed to solve this problem another way.
I don't remember how, but I'll try to think of it.

thisone
25th June 2008, 05:02 PM
Ah, yeah...

I had somehow added my router's IP address (192.168.0.1) as Primary DNS in the network configuration.

After I added the correct IP addresses (found on my router's config page, 192.168.0.1) as primary and secondary DNS, the problem was solved.

Sir Igor
25th June 2008, 05:59 PM
Thanks for your advice.

That didn't anyway solve my problem. Well I hope some other solutions come up.

Sir Igor
5th August 2008, 11:00 AM
Booting the server machine did the trick 8)

oneofmany
5th August 2008, 11:46 AM
the problem is usually a msiconfigured /etc/resolv.conf file. it is used to try and do a reverse dns lookup on connections to telnet, ftp, ssh and other interactive services. when it contains an invalid or missing ip address you have to wait for the connection attempt to time-out, hence the delay :)

castryon
28th August 2008, 04:58 PM
the problem is usually a msiconfigured /etc/resolv.conf file. it is used to try and do a reverse dns lookup on connections to telnet, ftp, ssh and other interactive services. when it contains an invalid or missing ip address you have to wait for the connection attempt to time-out, hence the delay :)

Had the issue with delay, but this solved my problem. Thanks!