Tuesday, September 14, 2010

Pure-FTP Hangs on Login

 
Pure-FTP just now was hanging for me upon
login. I found the following web page:

lftp and pureftp stops
at making data connection


The following suggestion is the one that
did the trick for me:

set ftp:ssl-allow off

I added this to the rightmost part
of the command line:

-e "set ftp:ssl-allow off"

It worked.

Update: March 15, 2014

For whatever reason, I'm having the exact same problem—Pure-FTPd hangs on login. However, this time turning off SSL is not working.

Here's what is working:

-e "set ftp:passive-mode off"

See comment below from Francesco for an alternative way to do the same thing.

Also note that the above link suggests the opposite. The above link suggests that you turn passive mode on rather than off.

This would seem to suggest at least 3 possible reasons why lftp might hang on login with Pure-FTPd:

  1. SSL is on and needs to be turned off
  2. Passive mode is on and needs to be turned off
  3. Passive mode is off and needs to be turned on

Note that all 3 scenarios above are probably distinct FTP servers, each at a different hosting company.

I'm sure someone has a better explanation than I do as to why this is so. For now, I'm just going to assume that each case above is an FTP server that is cnfigured a little bit differently.

Ed Abbott