Install LFTP with OpenSSL support (Updated 19 Oct. 2014)

First, install the prerequisites:

apt-get install openssl build-essential libreadline-dev libssl-dev ncurses-dev

Grab the lftp source bundle from here: http://lftp.yar.ru/

wget http://lftp.yar.ru/ftp/lftp-4.6.0.tar.gz

tar -xzf lftp*

cd lftp*

Configure it with openssl support:

./configure --prefix=/usr/local --with-openssl=/usr/lib

Make sure you see this line (or something similar) in the autoconf spam:

checking for openssl library... OPENSSL_LIBS="-lssl -lcrypto" OPENSSL_LDFLAGS="-L/usr/lib/lib -R/usr/lib/lib" OPENSSL_CPPFLAGS=-I/usr/lib/include

Now compile it:

make install

After this you will have to add the following to the lftp.conf typically located in /usr/local/etc

set ssl:verify-certificate off
set ftp:ssl-force true

Remember when installing manually you will probably have to specify the full path when running it

/usr/local/bin/lftp

Example:

/usr/local/bin/lftp -u "USER,PASSWORD" -p PORT -e "ls; quit" HOSTNAME

Dedicated Servers of extremely high class with great prices: http://dedicated.dentoo.info

Seedbox experts: http://dentoo.info

Auto uploader: http://dentoo.net

lftp_with_openssl.txt · Last modified: 2014/10/19 15:06 by dent
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki