I have recently purchased SSH Tunnel and was wondering if it can handel multi SSH hops in one tunnel … e.g.
i have the following servers. LocalHost, Jumpserver, Target System.
The issue here is the firewall rules block all ports except SSH (from the jumpserver), so i need to ssh to the jump and then ssh to the target system so i can invoke services locally (on Target system).
You will get a port 8022 on your LocalHost which was mapped to Target System port 22. Which means, once you connect to LocalHost:8022, the data will be redirected to Target System:22 transparently.
So next steps are straightforward, treat LocalHost:8022 as you are using Target System:22:
The option #2 in linked answer is not possible in SSH Tunnel, at least not supported by now.
But option #1 and #3 can be easily achieved in SSH Tunnel, I would recommend you go with option #3, just create two tunnels as described in #3, and turn on the two tunnels in sequence.