LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2013, 10:09 AM   #1
JackJmy
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Rep: Reputation: Disabled
lftp `ls' at 0 [Connecting...] problem


Hi All,
I've a "dedicated server" and all ports are blocked except the ones needed. ftp and ssh default ports are changed.

My host provide a "backup ftp server" which can be accessible from my "dedicated server" via lftp.

I can connect to my "backup ftp server" but ls command get's stuck at
lftp `ls' at 0 [Connecting...]

I've spent few hours in trying the solution provided at
http://unsigned-nerd.blogspot.co.uk/...ftp-issue.html
http://fryth.com/lftpfaq/
and various other places but nothing seems to work.

Does anyone know solution which actually works?
Tx
 
Old 04-06-2013, 10:29 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
In my experience, it often has to do with the use of PASV (passive) in the FTP transfer request in "secured" or "hardened" systems where netfilter rules are used. Even if that's it, it could still be a number of things or combination of them to resolve, such as use of nf_conntrack_ftp module, force client to _not_ use passive, etc. That's where I'd start looking if you haven't already.


Mind providing lftp debug output of the event? Feel free, even encouraged, to sanitize the output with non-routable or even non-existent domain names and IPs. Just be consistent for the particular name/IP to avoid confusion. If it's 192.345.9.3 in one place, the same IP should be used for that system elsewhere in the output to avoid confusion.

Code:
[ code ]
 session data goes here
[ /code ]
Example:
Code:
$ lftp -u demo1 server.domain.local
Password: 
lftp demo1@server.domain.local:~> debug     
lftp demo1@server.domain.local:~> ls
---- Connecting to server.domain.local (172.16.8.11) port 21
<--- 220 (vsFTPd 2.3.4)
---> FEAT
<--- 211-Features:
<---  EPRT
<---  EPSV
<---  MDTM
<---  PASV
<---  REST STREAM
<---  SIZE
<---  TVFS
<---  UTF8
<--- 211 End
---> OPTS UTF8 ON
<--- 200 Always in UTF8 mode.
---> USER demo1
<--- 331 Please specify the password.
---> PASS XXXX
<--- 230 Login successful.       
---> PWD
<--- 257 "/"
---> PASV
<--- 227 Entering Passive Mode (172,16,8,11,59,223).
---- Connecting data socket to (172.16.8.11) port 15327
---- Data connection established
---> LIST
<--- 150 Here comes the directory listing.
---- Got EOF on data connection
---- Closing data socket
drwxr-xr-x    3 502      502          4096 Nov 14  2010 Documents
<--- 226 Directory send OK.
lftp demo1@server.domain.local:/> bye
---> QUIT
---- Closing control socket

$
 
  


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
lftp problem mesh2005 Linux - Software 4 05-03-2007 07:06 AM
problem in lftp gopi_raghu Linux - Software 2 02-08-2007 05:31 AM
Question about lftp problem! CN_jianzi Linux - Software 1 10-11-2006 01:31 PM
lftp problem bipins1979 Linux - General 1 06-21-2006 10:20 AM
lftp Problem / Question LinuxGeek Linux - Software 5 11-02-2004 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:02 AM.

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