image/svg+xml
SSH tunneling/port-forwarding with a jump hostby ao2.it
1. Home Host creates a reverse tunnelfrom the private remote port 1235 to its SSH portAny traffic to port 1235 of Jump Host will be forwardedto the SSH server on Home Host
2. A local (unencrypted) tunnel is createdfrom the public port 1234 of Jump Hostto the private port 80 of Home Hostover the tunnel on the private port 1235 of Jump Host(This avoids enabling GatewayPorts on Jump Host)
3. Any traffic to port 1234of Jump Host gets forwardeddown to port 80 of Home Host
0. Home Host just needs to be able to accessthe ssh server on Jump Host
Jump Hostexample.com
80
22
$ ssh -t -R 1235:localhost:22 user@example.com \ "ssh -c none -g -L 1234:localhost:80 me@localhost -p 1235"
22
1234
1235
Home Host
Road Warrior