How to ssh with a jump / proxy host

Published 2025-10-20 14:24:39 UTC


How to ssh with a jump / proxy host


Sometimes you need access to a host not on the same network as you. Luckily, ssh has a built-in jump/proxy option.


In order to connect with a jump or a proxy you just have to provide the `-J` flag.

ssh -J <USER>@<PROXYHOST> <USER>@<TARGETHOST>
This way ssh first connects to the proxy and then hops to the target host automatically.