Operating System - Linux
1826499 Members
1511 Online
109692 Solutions
New Discussion

FTP connection take a long time.

 
Irving Lopez
Advisor

FTP connection take a long time.

Hi pepople,

Info:
Kernel 2.2.19
wu-ftp 2.6.1

When try to connect to my ftp server the connection take a long long take to be established.

All comments welcome

Thanks.
TAMA
5 REPLIES 5
Bernie Vande Griend
Respected Contributor

Re: FTP connection take a long time.

The first thing that comes to mind is a name resolution problem.

Usually ftp and telnet try to do a reverse lookup on the IP address of the client that is trying to connect. If it can't resolve it, then the connection usually takes a long time.

To rule this out, put a hostname and IP address of the client in your ftp's server /etc/hosts file and make sure /etc/nsswitch.conf has files listed in the hosts line.
Ye who thinks he has a lot to say, probably shouldn't.
Irving Lopez
Advisor

Re: FTP connection take a long time.

All this settings are done, and still not working.

TAMA
Jeffrey S. Sims
Trusted Contributor

Re: FTP connection take a long time.

I just recently had this same problem. Try deleting the lines in /etc/xinetd.d/wu-ftpd that read

log_on_success += DURATION USERID
log_on_failure += USERID

That worked for me. Hope it helps
Irving Lopez
Advisor

Re: FTP connection take a long time.

I am using rh 6.2 and xinetd is used in rh 7.

TAMA
John Love_3
Regular Advisor

Re: FTP connection take a long time.

Irving,
do you have a hosts entry in your PC for the FTP server? This won't solve the problem for everyone, but just a step to gather information.
If you use WindowsNT or win2k, the hosts file is in C:\winnt\system32\drivers\etc
Try this and then try pining the ftp server by name and then from the ftp server, ping your pc by name and see if it resolves.
We'll go from there.