2

The following command:

lftp -c 'open -e "set ftps:initial-prot ""; \
set ftp:ssl-force true; \
set ftp:ssl-protect-data true; \
set ssl:verify-certificate no; \
nlist ; " \
-u "username","password" \
ftps://server.domain.org:21'

Produces:

nlist: Fatal error: gnutls_handshake: A record packet with illegal version was received.

Running LFTP 3.7.11. Anyone have an idea what could cause this? I think I may need lftp with gnutls, but installing from source is not really an option on this server, and the only version I see available with yum includes only ReadLine.

# lftp -v
LFTP | Version 3.7.11 | Copyright (c) 1996-2009 Alexander V. Lukyanov
...
Libraries used: Readline 5.1
3
  • This is not a question. May 8, 2013 at 20:38
  • Whoops, didn't realize it didn't paste my whole thing.
    – Derek
    May 8, 2013 at 20:42
  • According to RFC 4127, the data channel protection (set via the PROT command) must be C (Clear) or P (Protected). You configure lftp to use set ftps:initial-prot ""; you might instead try set ftps:initial-prot "P".
    – Castaglia
    Apr 30, 2016 at 15:59

0

You must log in to answer this question.

Browse other questions tagged .