Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ls command problem

Status
Not open for further replies.

jeffvb9

Technical User
Nov 14, 2002
44
0
0
US
I have proftpd running on my RH8 machine.

When I try and ftp from another machine on my network I can get in just fine but when I do a ls or dir I get this:

200 PORT command successful
then about 20 seconds later I get this:

connection closed by remote host.

I have a router on my network and have both 20 and 21 pointed to my linux box for ftp.

Any ideas??
 
I think if the ftp server setup the timeout item.
 
Your data port will use a high port, typing ls uses the data port, so you must be blocking that with you router, ftp is a bugger to get through a firewall/router, have you tried it in passive mode??

Led*Zep
 
How do I use passive mode. I think the command is passv but I dont know how to use it.
 
I just tried it using ftp and ncftp. It's just 'passive' on both of them. If using a GUI ftp client, it's stuffed in an options menu somewhere. --
JR
 
You sound like you are using passive ftp, the problem is even though you have opened ports 20 & 21. You have not allowed the dataport through the firewall, hard to explain, so check out this link, should show you what I mean. You are guna have to open up high ports.


Ta
Led*Zep
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top