LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-15-2013, 07:58 AM   #1
swaggerlee
Member
 
Registered: Jul 2012
Location: India,Kolkata
Distribution: fedora,ubuntu
Posts: 35

Rep: Reputation: Disabled
Exclamation 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

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

Last edited by swaggerlee; 05-15-2013 at 07:59 AM.
 
Old 05-15-2013, 11:12 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
is it working in active mode?
 
Old 05-15-2013, 11:48 PM   #3
swaggerlee
Member
 
Registered: Jul 2012
Location: India,Kolkata
Distribution: fedora,ubuntu
Posts: 35

Original Poster
Rep: Reputation: Disabled
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

Last edited by swaggerlee; 05-17-2013 at 01:21 AM.
 
Old 06-10-2013, 02:29 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
  


Reply

Tags
fedora 12, ftp, vsftp


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
389 directory server - client unable to login. chengli Linux - Server 4 01-19-2017 01:52 AM
[SOLVED] Unable to list the directory after changing FTP port from 21 Muhammad Hamid Ashraf Linux - Newbie 11 03-17-2013 06:46 PM
ftp command hangs with:227 Entering Passive Mode (10,119,98,125,4,12). dannynjust Linux - Software 2 02-15-2012 09:06 AM
ProFTPD hangs on "227 Entering Passive Mode" VirusHater Linux - Newbie 4 06-30-2010 05:26 PM
227 Entering Passive Mode mxtinker Linux - Networking 1 02-25-2004 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration