I'd like to setup an sftp tunnel so that I can connect to an IP-secured SFTP server through a gateway computer from anywhere, and download the files to anywhere.

I was thinking of using a combination with netcat, having it listen to either WinSCP or PuTTY sFTP (doesn't matter which). Not sure how I would download the files to the connecting computer though. I would like the tunnel to be secured, preferably, with a username/password.

I'm open to using alternative software but I'm looking for unintrusive, simple command line stuff because I don't want to install a lot on this computer.


  • It would be useful to know what operating systems you are running on both the SFTP and gateway machines. – Lawrence Velázquez Nov 30 '10 at 0:55
  • Windows on both – bgcode Nov 30 '10 at 3:05

Install OpenSSH server and Netcat on the gateway and then it becomes a matter of using ProxyCommand properly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.