How can I enable port forwarding for SSH in Windows 10? This is from my Ubuntu box.

Host ahost
 Hostname ipaddress1
 User usernamehere

Host ahost2
 HostName ipaddress2
 User usernamehere
 LocalForward 5440 externalip:port
 LocalForward 5400 externalip:port
 LocalForward 3300 externalip:port
 ProxyCommand ssh -W %h:%p ahost

Is there a way with putty? since it is SSH tunneling I think.

  • 1
    please better describe your network. you port forward on a gateway router device. Is your win10 system configured as a gateway router? what roles do the win10 and ubuntu boxes play in the network, where are they in relation to eachother, and where will the remote clients be? Dec 8, 2016 at 15:18
  • It is just a way for me to ssh into an EC2 computer and tunnel some local ports to that EC2 computer. If that makes sense. Dec 8, 2016 at 15:27
  • ahh, ok you are tunneling, not port forwarding. gotcha. Dec 8, 2016 at 16:48

3 Answers 3


Yes, putty can do port forwarding. Its in the Connection -> Ssh -> Tunnel section of the config.


Just enter the local port in Source port and the externalip:port as the Destination.

For the proxy command see this link.



The equivalent in PuTTY is "local proxy command". You can use the plink.exe with the -nc switch instead of the ssh with the -W switch.


For me, this worked on Windows 10:

ssh -f user@host -L port:localhost:port-N

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.