LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-03-2005, 01:07 AM   #1
tuxfood
Member
 
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

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
 
Old 12-03-2005, 07:11 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,128

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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 07:15 PM.
 
  


Reply


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


All times are GMT -5. The time now is 08:45 PM.

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