Skip to content

Instantly share code, notes, and snippets.

@juniorh
Last active January 25, 2018 11:28
Show Gist options
  • Save juniorh/a24c20868cdb21f4a1ab6eda1b9d3965 to your computer and use it in GitHub Desktop.
Save juniorh/a24c20868cdb21f4a1ab6eda1b9d3965 to your computer and use it in GitHub Desktop.
tunneling rdp connection through ssh
[mypc] <--> [ssh server: example.com] <--> [rdp server windows: win.dest.com]
ssh -L 3389:win.dst.com:3389 example.com -p 22
ssh -L 3389:192.168.202.3:3389 -l rizal 6efd062ed0d8.sn.mynetname.net -p 65422
then connect rdp server via localhost port 3389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment