Skip to content

Instantly share code, notes, and snippets.

@aussielunix
Last active October 30, 2018 02:03
Show Gist options
  • Save aussielunix/0596aba1279daeedc702566110d0b18a to your computer and use it in GitHub Desktop.
Save aussielunix/0596aba1279daeedc702566110d0b18a to your computer and use it in GitHub Desktop.
rdp via jumpbox over ssh

RDP via an ssh tunnel

The following two commands lets you rdp into a Windows insatnce that is on a private network via a linux jump host.

Run this command and then you have 30 seconds to establish an rdp session.

ssh -i private.key jumpbox@aa.bb.cc.dd.ee -fL 3389:172.12.1.10:3389 sleep 30

This will rdp into the private Windows instance at the other end of the ssh tunnel.

rdesktop 127.0.0.1 -u "Administrator" -r clipboard:PRIMARYCLIPBOARD -p "password,password" -g 1024x768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment