On OpenSSH 7.3/7.3p1 there is this wonderful new feature:
ssh(1): Add a ProxyJump option and corresponding -J command-line
flag to allow simplified indirection through a one or more SSH
bastions or “jump hosts”.
So with some key usage you can easily get to other systems without having to deal with nasty -o ProxyCommand hacks. There is also ProxyJump for your configs.
This and other tricks are useful to know, for the weird times you need them.
Anybody want to share their favorite similar SSH tricks?
Here is a neat trick: You can add proxies to an existing connection via
~C:and (as noted in that output) if you’re in a “stuck” SSH connection,
~.kills it immediately.On OpenSSH 7.3/7.3p1 there is this wonderful new feature:
So if you are using keys you can do things like:
So with some key usage you can easily get to other systems without having to deal with nasty -o ProxyCommand hacks. There is also
ProxyJumpfor your configs.