lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.08k stars 159 forks source link

There is issue to connect to a SFTP server via http proxy #637

Open pghole opened 2 years ago

pghole commented 2 years ago

I am behind a Http proxy and want to use lftp to connect to my SFTP server. I am giving that in the command as follows, however, it gives me missing command argument error when I try to upload a file to SFTP

lftp sftp://user@sftp.server -e 'set sftp:connect-program "ssh -ax -o ProxyCommand nc --proxy localhost:8080 --proxy-type http %h %p"'

I enter the password after that and then when I try the put command it gives me error.

lavv17 commented 2 years ago

You need ssh to support such a connection.

On Wed, 11 Aug 2021 at 08:40, pghole @.***> wrote:

I am behind a Http proxy and want to use lftp to connect to my SFTP server. Currently, this is not supported. Setting the http_proxy does not help in this.

Can a support for this be added or it already exists ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lavv17/lftp/issues/637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLWXDYC46VRO2G45MI2QTT4IELFANCNFSM5B5RWWRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Alexander.