lftp with SSL (ftps) cannot run the ls command in Red Hat Enterprise Linux 5

Solution Verified - Updated -

Issue

  • I'm trying to connect to a ftp server with lftp
lftp -c open -e "set ftps:initial-prot; set ftp:ssl-force true; set ftp:ssl-protect-data true; set ftp:ssl-allow off; ls -altr; " -u tester,testerpasswd ftps://xxx.xxx.xxx.xxx:990

But, after this command is executed, I got a hang with this output.

`ls -altr' at 0 [Making data connection...]

Environment

Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content