Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-03-2005, 02:07 AM   #1
Registered: Aug 2003
Location: kerala , India
Distribution: RH9 , FC1 ,
Posts: 141

Rep: Reputation: 15
Cannot mput/mget/ls in a ftp server ... But can login to it!!!!

hi ...

i am running a vsftpd on my machine ..
i have configured vsftpd to allow local users to login to it ..
So the login phase goes on well and good but if i try to list the contents of the directory , "mget"ing "mput"ing something to it .. ftp exits with an error message

227 Entering Passive Mode (192,168,3,99,100,152)
ftp: connect: No route to host

any solutions??


Old 12-03-2005, 08:11 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
The problem appears to be with passive mode. For FTP, there are two connections, one for commands and one for data. In active mode, the server connects back to the client to initiate the data transfer, but since many people are behind firewalls etc. most use passive FTP. In passive FTP, the client opens a second connection to the server on some high numbered port for the data chennel. Your problem appears to be that the client can't make the second connection. Do you have a firewall in front of your FTP server? If so, you'll need to open up whatever ports your FTP server uses for passive FTP through it. This is why connecting and command like cd work, but anything that transfers data, like the result of the ls command, does not. Do a google on passive ftp and see this page for more information.

Last edited by btmiller; 12-03-2005 at 08:15 PM.


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
mput all in ftp snoble Linux - Software 0 11-02-2004 05:36 PM
Why we use bin before mget and mput during ftp indian Linux - General 1 09-04-2004 12:14 PM
Ftp and mget phishman3579 Slackware 1 07-31-2003 12:12 PM
ftp mget Sammy2ooo Linux - Networking 2 05-06-2003 12:53 PM
usage of mget FTP command sancho5 Linux - General 1 12-31-2001 10:27 AM

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

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