camscape - for excellent IT solutions - IT knowledge base

linux :: lftp cannot list folder

David G.
Titlelftp cannot list folder
Desc.lftp cannot list folder altough it is connected
CodeKBLN0039 v1.0
Date15 august 2018

After successful connection using lftp


lftp -u username,userpass target_ip


a simple command like ls is not working but hanging and wait for timeout. The reason can be a destination target self signed certificate or, more possible, a destination misconfiguration regardint ftp ssl. To avoid it, run it without ssl:


lftp -u username,userpass target_ip
lftp> set ftp:ssl-allow no


or one liner:


lftp -u username,userpass target_ip -e "set ftp:ssl-allow no;"