LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot mput/mget/ls in a ftp server ... But can login to it!!!! (https://www.linuxquestions.org/questions/linux-networking-3/cannot-mput-mget-ls-in-a-ftp-server-but-can-login-to-it-388829/)

tuxfood 12-03-2005 01:07 AM

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

Code:


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

why????

any solutions??

thnks

tuxfood

btmiller 12-03-2005 07:11 PM

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.


All times are GMT -5. The time now is 04:38 PM.