Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to connect to a server via FTP and I'm having some problems. Server is a CentOS with Pure-FTPd.

My usual client is lftp which on this server gets stuck at "Making data connection". All google results about this suggest setting ftp:ssl-allow no but that didn't help in my case.

I also tried other clients and experienced the same behavior with ncftp and the graphical gnome gftp: connection is made but no data is transferred even for a simple ls.

However, connection and data transfer work with basic ftp client and from a Perl script using Net::FTP module.

Any suggestion on what options I can try to get the other clients working?

share|improve this question

Try using ftp in passive mode the relevant setting in lftp is ftp:passive-mode

share|improve this answer
Nope, didn't work – Matteo Riva Mar 10 '11 at 9:15
try using a sniffer and see if you get some kind of error, or what is the difference between the successful clients and lftp. – Ophir Yoktan Mar 10 '11 at 10:00
Try /disabling/ passive mode set ftp:passive-mode off. I've had more trouble with it on than off lately. – Shadur Mar 10 '11 at 11:32
Not related to the actual problem, but whenever you have the choice, default to sftp rather than straight ftp. Doesn't suffer from the active/passive crap, works anywhere you can make an SSH connection to, and secure data transmission to boot. – Shadur Mar 10 '11 at 11:34
passive mode on or off seems to make no difference, and unfortunately I have no ssh access – Matteo Riva Mar 10 '11 at 15:03

It may be the problem with ssl. Try:

lftp -e 'set ftp:ssl-allow no' ...
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.