1

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? – Frank Thomas Dec 8 '16 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. – Scott Deutsch Dec 8 '16 at 15:27
  • ahh, ok you are tunneling, not port forwarding. gotcha. – Frank Thomas Dec 8 '16 at 16:48
1

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

putty-screenshot.

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

For the proxy command see this link.

https://monkeyswithbuttons.wordpress.com/2010/10/01/ssh-proxycommand-and-putty/

| improve this answer | |
1

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.

| improve this answer | |
0

For me, this worked on Windows 10:

ssh -f user@host -L port:localhost:port-N
| improve this answer | |

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.