LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   unable to list directory from client to FTP server ...227 entering pasv mode !! (https://www.linuxquestions.org/questions/linux-server-73/unable-to-list-directory-from-client-to-ftp-server-227-entering-pasv-mode-4175462093/)

swaggerlee 05-15-2013 07:58 AM

unable to list directory from client to FTP server ...227 entering pasv mode !!
 
HI all

let me be brief to my problem !

one of my client to whom we deliver our project/software has given me FTP access through which i used to update/troubleshoot code.
The problem is when i try to upload/list dir. from my home using direct internet connection i can fetch the data or upload data (running win XP)

But the same thing m unable to do from my office (running fedora 12!)direct net connection :scratch:

when i type in TERMINAL:
Quote:

ftp> glounge.in
ftp>username:xxxxx
ftp>password:xxxxx
ftp>Login succesfull !!
after this i try to list the directory 'ls'
it says
ftp>227 entering passive mode (x.x.x.x)
(it gets freezed !!) after few mins

ftp> connection time out
funny parts is that apart from my office network i can connect & list dir from other medium say mobile-broadband etc..


but unable to do from my office network can any one help me possible reason ...
==================================================================

Hope i was brief to my problem

Ygrex 05-15-2013 11:12 AM

is it working in active mode?

swaggerlee 05-15-2013 11:48 PM

Quote:

Ygrex
well i can connect now but
after login i.e.

ftp> glounge.in
ftp>username:xxxxx
ftp>password:xxxxx
ftp>Login succesfull !!
every time i have to off the passive mode i.e

>passive off
after that i can list directories

how to resolve this do9 i have to off passive mode every time i connect to ftp or is there any resolution

druuna 06-10-2013 02:29 AM

Have you tried using ftp's -i and/or -p switch?

From the manual page:
Quote:

-p Use passive mode for data transfers. Allows use of ftp in environ‐
ments where a firewall prevents connections from the outside world
back to the client machine. Requires that the ftp server support
the PASV command. This is the default if invoked as pftp.

-i Turns off interactive prompting during multiple file transfers.


All times are GMT -5. The time now is 10:03 PM.