LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2011, 01:38 AM   #1
nwpuhlh
LQ Newbie
 
Registered: Apr 2010
Location: hangzhou, china
Distribution: Fedora 13
Posts: 9

Rep: Reputation: 0
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!
 
Old 05-23-2011, 02:01 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Probably reverse DNS lookup.

Had a similar issue long ago; see http://www.linuxquestions.org/questi...0-1%5D-452421/
 
1 members found this post helpful.
Old 05-23-2011, 02:54 AM   #3
nwpuhlh
LQ Newbie
 
Registered: Apr 2010
Location: hangzhou, china
Distribution: Fedora 13
Posts: 9

Original Poster
Rep: Reputation: 0
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...?
 
Old 05-23-2011, 12:45 PM   #4
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
Lightbulb

Quote:
Originally Posted by nwpuhlh View Post
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
 
Old 05-24-2011, 01:30 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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
 
Old 05-25-2011, 03:55 AM   #6
nwpuhlh
LQ Newbie
 
Registered: Apr 2010
Location: hangzhou, china
Distribution: Fedora 13
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
Old 05-25-2011, 07:12 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] wait for ssh remote commands. xeon123 Linux - Newbie 9 04-14-2011 09:40 AM
Squid not allowing FTP access - Fedora13 Trader2699 Linux - General 1 11-18-2010 01:01 AM
Wait for WiFi connection before launching SSH? stickyc Linux - Wireless Networking 2 10-21-2006 02:44 PM
ssh, long wait before able to enter password amphion Linux - Newbie 2 04-26-2006 05:16 AM
Perl: Wait for ssh connection to close kenneho Programming 9 10-29-2005 10:19 AM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration