lftp hangs (`ls' at 0 [Connecting...])

Project:Linux software
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Related pages:#175: lftp
Description

The server supports "FTPES - FTP plus explicit (TLS/SSL)".
I try to connect:

$ lftp -d sftp://username@ftp.example.com:21
Password:
~>
ls
---- Running connect program (ssh -a -x -s -l username -p 21 ftp.example.com sftp)
---> sending a packet, length=5, type=1(INIT), id=0
**** Timeout - reconnecting
---- Disconnecting
---- Running connect program (ssh -a -x -s -l username -p 21 ftp.example.com sftp)
---> sending a packet, length=5, type=1(INIT), id=0
`ls' at 0 [Connecting...]

But then the application hangs there.

Comments

#1

set ftp:passive-mode on/off does not make a difference either way...

#2

The Passive/Active FTP Nightmare
http://fryth.com/lftpfaq/
lftp uses passive mode by default, which works in 99% of cases. Some sites require an active internet connection (open ports on your end) to work properly (usually a misconfiguration by the admin).
http://ubuntuforums.org/showpost.php?p=1321655&postcount=3
For anyone that finds this later the fix includes the following on the server side for a pureFTP connect:

1. Force passive mode on server
2. Open specific ports in server firewall

#3

BTW, I asked there:
http://ubuntuforums.org/showthread.php?t=1768640

lftp: cannot connect to FTPES server

#4

Daniel Fazekas is being very helpful in the thread starting here:
http://www.mail-archive.com/lftp@uniyar.ac.ru/msg03949.html
:)

#6

Daniel apparently provided all the missing keys in his last email in the above thread. I feel a large cloud has just lifted from my poor brain.

:)

I need to summarize all the information Daniel Fazekas provided into the wiki.

http://linux.overshoot.tv/wiki/networking/lftp

#7

As we found out during the debugging session, ouvaton's server is badly configured:
http://minguo.info/ouvaton/billetterie/node/75

#8

Status:active» fixed

Done. :)

#9

Status:fixed» closed
Related pages:-175: lftp

Automatically closed -- issue fixed for 2 weeks with no activity.