I am looking for a way to connect to an Amazon VPC EC2 instance from WinSCP. I am able to connect to it via PuTTY by SSHing to the NAT server and then ssh to the private instance using its private IP.

However, I am not sure how to do this in WinSCP to transfer files from/to the instance.

Is this even possible?


You can use the NAT server as an SSH tunnel.

  • Either set up a port forwarding in your PuTTY instance and connect WinSCP via that forwarding.

  • Or use a native tunneling support in WinSCP.

For details on both approaches, see WinSCP guide to connecting to SFTP server which can be accessed via another server only.

Also mentioned in WinSCP guide to Connecting securely to Amazon EC2 server with SFTP.

  • I was using the tunneling support however I switched the ips of the two servers. Thanks – Zaid Amir Oct 13 '15 at 11:49

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.