PuTTY and Remote Desktop
You can set up port forwarding.
To do this, do the following:
- Go to Connection > SSH > Tunnels in the configuration
- Choose some source port which is not used on your system; I tend to choose something like 13389
- For destination enter the IP address or the host name of the system you want to connect to with RDP, followed by ":3389"
- Local and Auto can stay as they are
Click "Add" to add the forwarding to the list of forwarded ports
You can save your configuration if you need it more often
Now you can connect to your network. After the SSH connection is established you can use the Remote Desktop Connection to connect to "localhost:13389" (the port at the end must match the local port you selected in PuTTY). You should connect to the remote computer, then.
Related videos on Youtube
Zach
Updated on September 17, 2022Comments
-
Zach over 1 year
I recently needed to access a Windows machine with Windows Remote Desktop, but I was unable to connect due to a firewall on the network. (While on the network, I have successfully connected to the system). The only way to connect to the network is through SSH.
How do I configure PuTTY to SSH into a remote network and then allow me to use Windows Remote Desktop to connect to a machine on that network?
-
David Spillett over 14 yearsRemember to click "add", to add your new rule to the list of forwarded ports, before clicking "open" or going to a different configuration tab. The amount of times I forget this and have to go back to re-enter a rule is embarrassing.
-
Joey over 14 yearsEep, you're right. Added this to the explanation.
-
alexus over 14 yearsand then "save" in "Session" category
-
Zach over 14 yearsCool. Worked like a charm.
-
user420603 over 11 yearsOccasionally, Windows decides that you can't remote desktop to "localhost". You can use "127.0.0.2" instead.