telnet ssh-jump-box 22
If all is good then we should see something like
Connected to ssh-jump-box.
Escape character is '^]'.
In this example we’re going to create a tunnel for port 3389 windows rdekstop and we’ll begin by creating a local loopback port 3390 that ssh will tunnel from myMachine to myFireWalledMachine on port 3389
ssh -L 3390:server-behindFirewall:3389 user@ssh-jumpbox -N
Now we can access the service on port 3389 that was previously inaccessible through the firewall by pointing our connection to the local loopback port we just created through ssh. In this case we\’ll use rdesktop to hit that port as we are trying to remote desktop to a firewalled machine.