LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Wait for about 10s when ssh and FTP in Fedora13 (https://www.linuxquestions.org/questions/linux-newbie-8/wait-for-about-10s-when-ssh-and-ftp-in-fedora13-882179/)

nwpuhlh 05-23-2011 12:38 AM

Wait for about 10s when ssh and FTP in Fedora13
 
I've installed offical Fedora13 on a EEEPC and start sshd and ftp service.
The problem is that when I ssh to that PC I have to wait for about 10s and then it login in successfully. And also when FTP to it, also it takes 10 and then it turn out to be ok. Is there any configuration which need to be modified? Thanks!

Wim Sturkenboom 05-23-2011 01:01 AM

Probably reverse DNS lookup.

Had a similar issue long ago; see http://www.linuxquestions.org/questi...0-1%5D-452421/

nwpuhlh 05-23-2011 01:54 AM

Thanks Wim for your quick reply. Per your suggesion, after I add host ip to /etc/hosts the problem is resolved! But I'm still not clear why SSHD server need to DNS the client...?

16pide 05-23-2011 11:45 AM

Quote:

Originally Posted by nwpuhlh (Post 4364225)
Thanks Wim for your quick reply. Per your suggesion, after I add host ip to /etc/hosts the problem is resolved! But I'm still not clear why SSHD server need to DNS the client...?

typically it's because the service wants to log usage with a machine name instead of a machine IP (easier to read for the admin).

And you'll get same behavior with some other services

chrism01 05-24-2011 12:30 AM

Also, for the paranoid level of security; does the reverse DNS match the fwd one...? See notes on TCP Wrappers / xinetd.

http://www.linuxtopia.org/online_boo...ion/index.html

nwpuhlh 05-25-2011 02:55 AM

Thanks 16pide and chrism01! Compared to another PC which OS is also Fedora13 and there is not such problem on it, the current PC is DHCP enabled and no fixed IP is provided. Is this the root cause?

Wim Sturkenboom 05-25-2011 06:12 AM

What is the content of /etc/resolv.conf

DHCP often / always (?) sets the nameserver(s); maybe that was forgotten when he fixed IP address was assigned.


All times are GMT -5. The time now is 04:03 AM.