Does Core Tunnel support multi-hop connections? My use case requires connecting through two jump boxes to a target:
local -> jump1 -> jump2 -> target
This post was really helpful, but I’m struggling figuring out how to make it work with a second jump box: Multi Tunnel SSH
These are the commands I’m running locally to get it to work:
(on local) ssh -L 1500:localhost:1500 jump1-user@jump1-ip
(on jump1) ssh -L 1500:target-ip:target-port jump2-user@jump2-ip
Thanks Yang. One complication is I'm connecting to jump1 with user/pass, but to jump2 with a private key that lives on jump1. I'd need that key locally for it to work, right?
AFAIK, if you use ProxyJump option,, you have to keep all required private keys locally.
There is a way that you can keep private key on jump1, but at the cost of intuitive, you can't utilize ProxyJump option to simplify the workflow, I'd rather not recommend you do that.
Let me know if you have no choice but to keep private key on jump1.