Is possibile to use proxy with sftp connection ?
See original GitHub issuelet Client = require('ssh2-sftp-client'); let sftp = new Client(); sftp.connect({ host: '127.0.0.1', port: '8080', username: 'username', password: '******' }).then(() => { return sftp.list('/pathname'); }).then((data) => { console.log(data, 'the data info'); }).catch((err) => { console.log(err, 'catch error'); });
I use this type of code but is there an option for setting proxy ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Solved: sftp routing through proxy server - HPE Community
When a proxy is involved, your sftp client opens a TCP connection to the proxy using a specific proxy protocol (HTTP CONNECT, in...
Read more >Proxy Details with SFTP command - Stack Overflow
I use the following command (Cygwin) for connecting to SFTP servers over SOCKS proxy: sftp -oProxyCommand ...
Read more >Connecting with sftp using a proxy server - Unix Stack Exchange
I can connect using WinSCP so the connection details are correct. Any assistance is greatly appreciated! bash · proxy · sftp · netcat...
Read more >How To Set Up An SFTP Reverse Proxy in JSCAPE MFT ...
An SFTP reverse proxy adds another layer of security to SFTP services. In addition to SFTP's ability to encrypt data in transit and...
Read more >Using SFTP with .NET via a proxy - QuotaGuard
You can use the Renci SFTP library to route SFTP transfers via QuotaGuard Static from your .NET app, allowing you to lock down...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I struggled a bit for having this module work behind a corporate proxy, trying with ssh2, socksv5 and some of its forks.
I finally got it working using the (very simple to use) socks module.
Here is my solution:
My bad, got this working using @jmorino solution, just dunno why but i need to pass the socket property in the object… my code is as follow: