Let’s say you want to tunnel an RDP connection via SSH.
#!/bin/bash ssh -L13389:win2k8.example.com:3389 email@example.com
You need to run that script and keep your session open.
You can then access the remote System with a RDP Client over localhost 13389.
Original Post: https://coderwall.com/p/wzvxhg/ssh-tunnel-rdp-session-over-another-host