Posts Downloads Tags About RSS feed of posts

Nested SSH tunnels

So you need to get with SSH to host C via A and B. One intermediate host is frequently taken care of by giving a separate proxycommand, but this approach leads to a horrible mess of nested quotation if you need more jumps along the route.

A good solution is to use `-J`, which is massively awesome.

$ ssh -J user@A:22,user@B:22 user@C

#note #unix #ssh