ftps with lftp

lftp support ftps (different from sftp). ftps is ftp over an explicit TLS (SSL) connection. We’ve seen a few sites running MS IIS that require ftps and getting lftp to work has been tricky. To make it work verify that your lftp build has gnutls support compiled in with:

This build does not:

Here’s one that does:

Once you have have TLS support in your lftp build then you can put a file with something like this:

The option sets are critical as lftp wants to do “PROT C” by default but Windows wants to see “PROT P”.

Have a project or a problem?

Talk with a senior engineer for practical recommendations—no obligation.

Leave a comment

8 Responses

  1. This was very useful, thanks.

    I had been trying to find out if lftp supplied in RHEL5.3 supported TLS. The lftp -v command indicated it wasn’t, so I’ve compiled the latest lftp software from scratch and now I can see ftps is available.

    This has saved quite a lot of headaches.

    Thanks,
    Colin

  2. I am interested in the FTPS using lftp package in Cygwin. Please let me know which cygwin version we should use and how to go about this. I have Cygwin but it does not have the mentioned GNUTLS support. It would be helpful if someone can le tme know the cygwin version that would have lftp with gnutls support…

    Thanks in advance

  3. you are a god! I have been trying for hours to get this working on CentOS 6.4

    A few notes:
    – ldd /usr/bin/lftp does NOT include ssl but your method still works (version 4.0.9)
    – I got “Certificate verification: unable to get local issuer…” error so I added “set ssl:verify-certificate no” to the command string to get it working

  4. Thanks so much! Saved me a lot of frustration with a vendor who insisted they hadn’t changed anything on their end…

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.