rdp though reverse ssh tunnel with extra hop

0

I'm currently struggling with this task:

Changing Windows machines have to RDP over SSH to a Raspberry behind changing foreign networks.

So there has to be machine in-between the Windows host and the Raspberry.

I setup a Linux VM in our DMZ and also the FW policies + NAT rules.

Things that work:

  • I can reverse SSH from the Raspberry to the Linux VM in the DMZ
  • When Windows and Raspberry are in the same network, RDP over SSH works

Things that I can't figure out:

Tunnel RDP through Linux VM through reverse SSH tunnel to the Raspberry

thotho

Posted 2019-11-28T10:21:48.607

Reputation: 1

Answers

0

After digging more into this I figured it out!

Raspberry:

ssh -N -T -R33898:localhost:3389 Linux-VM

Windows (using putty):

Destination: Linux-VM:22

SSH > Tunnels> Forwarded ports: L4444 localhost:33898

thotho

Posted 2019-11-28T10:21:48.607

Reputation: 1