Solved

ftpd on Linux Red Hat 7.3 takes too much to show the login

Posted on 2004-04-24
5
352 Views
Last Modified: 2013-12-06
Hi

I'm new on Linux and I found out how to start the ftp daemon and it works fine except for one thing: it takes a lot to show the login. All the FTP clients reports that the connection is done very fast but it waits a lot for the login. Why is this happeninig and how I can resolve it? I've used HP-UX and other Unix and the login is very fast even through Internet, this machine is in a LAN of 2 PCs.

Thank you
0
Comment
Question by:mak730
  • 3
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
Comment Utility
That sounds a DNS lookup problem. When the FTP daemon accepts a connection from a clinet it will try to find out what the hostname of the remote client is by looking up the client's IP in the DNS. In your case it sounds like there's no DNS server that will respond with your client's IP and the request has to time out. You can avoid that problem by creating a hosts file record on the Linux box, someting like:

192.168.0.2       my-client.mydomain.net my-client
0
 

Author Comment

by:mak730
Comment Utility
ok, that sounds real good. Can you tell me where I must to create that file?
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
The file (/etc/hosts) will already exist. Simply open it with a text editor and and the line.
0
 

Author Comment

by:mak730
Comment Utility
I did it but it is still the same it takes a lot to show the login, here it is the contents of hosts file:

[mak@linux etc]$ more hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.162   makhome makhome
127.0.0.1       linux   linux
192.168.1.222   linux   linux

makhome is the machine (WinXP) i'am trying to connect from. linux is the host PC.
0
 

Author Comment

by:mak730
Comment Utility
The problem seem to be that I need to restart the Linux PC. After modify the hosts file and restart Linux the problem was solved.
Thanks.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now