Home » Linux

lftp disable ssl

By: Zhiqiang Ma On: Jan 16, 2010 Views: 47 No Comment Print Email
Tags: , , , ,

lftp some times stalls with message “Making data connection” when “ls” the directory after logged in the ftp site. The message may appear like this:

< --- 227 Entering Passive Mode (xx,xx,xx,xx,xx,xx)
---- Connecting data socket to (yy,yy,yy,yy) port zz
`ls' at 0 [Making data connection...]

But some client such as filezilla may works on the same site.

Most of the the reason is that the FTP server configuration didn't have assigned passive ports nor are they open on the firewall.

I find two solutions to this problem:

1) Disable ssl when using lftp
This is the easy solution because usually we can not change the server's configuration. We can do this by simply add one line:

set ftp:ssl-allow false

to ~/.lftprc.
My .lftprc configuration files can be found here: http://github.com/zma/config_files

2) Change the configuration on the server side for a pureFTP connect
Force passive mode on server and open specific ports in server firewall.

Read more:

Digg del.icio.us Stumble Techorati Facebook Newsvine Reddit Twitter
Mixx LinkedIn Google Bookmark Yahoo Bookmark MySpace LiveJournal Blogger RSS feed
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.