LFTP is a file transfer program which is really helpful for server management. Once after getting into the server using LFTP you may get the following error when βlsβ command is executed.
lftp [EMAIL PROTECTED]:~> ls
> `lsβ at 0 [Making data connectionβ¦]
This message will be shown for a long time without any other response. Relogging into the server in debug mode, you will get more a detailed error log.
<β 220βββ- Welcome to Pure-FTPd [TLS] βββ-
<β 220-You are user number 7 of 50 allowed.
<β 220-Local time is now 13:54. Server port: 21.
<β 220-This is a private system β No anonymous login
<β 220-IPv6 connections are also welcome on this server.
<β 220 You will be disconnected after 15 minutes of inactivity.
β> FEAT
<β 211-Extensions supported:
<β EPRT
<β IDLE
<β MDTM
<β SIZE
<β REST STREAM
<β MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
<β MLSD
<β ESTP
<β PASV
<β EPSV
<β SPSV
<β ESTA
<β AUTH TLS
<β PBSZ
<β PROT
<β 211 End.
β> AUTH TLS
<β 234 AUTH TLS OK.
β> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
Certificate depth: 2; subject: /C=US/O=Entrust.net/OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/OU=(c) 1999 Entrust.net Limited/CN=Entrust.net Secure Server Certification Authority; issuer: /C=US/O=Entrust.net/OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/OU=(c) 1999 Entrust.net Limited/CN=Entrust.net Secure Server Certification Authority
Certificate depth: 1; subject: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global CA; issuer: /C=US/O=Entrust.net/OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/OU=(c) 1999 Entrust.net Limited/CN=Entrust.net Secure Server Certification Authority
Certificate depth: 0; subject: /C=us/ST=Michigan/L=Ann Arbor/O=A2 Hosting, Inc./OU=Production Services/CN=*.a2hosting.com; issuer: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global CA
<β 200 MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
β> USER username
<β 331 User username OK. Password required
β> PASS password
<β 230-User username has group access to: username
<β 230 OK. Current restricted directory is /
β> PWD
<β 257 β/β is your current location
β> PBSZ 0
<β 200 PBSZ=0
β> PROT P
<β 534 Fallback to [C]
β> PASV
<β 227 Entering Passive Mode (74,ip,ip,125,50,177)
β- Connecting data socket to (74.ip.ip.125) port 12977
Interrupt
β> LIST
β> ABOR
β- Closing aborted data socket
We need to edit the lftp configuration file to fix the issue. Open the file /etc/lftp.conf or create a file named .lftprc inside the home directory for the user and add the following line :
set ftp:ssl-allow no
This should fix the issue and mirror the contents.
If you still facing any issues on using LFTP let us know, our server management team can help you.