~/Blog

Brandon Rozek

Photo of Brandon Rozek

PhD Student @ RPI studying Automated Reasoning in AI and Linux Enthusiast.

SSH Jump

Published on

Updated on

Warning: This post has not been modified for over 2 years. For technical posts, make sure that it is still relevant.

With ssh jump, we can ssh into a machine that we don’t have direct access to through an intermediary.

Just chain the necessary hosts together with the following command:

ssh -J host1 host2 host3 ...

Where the last host is the one you wish to connect to at the end.

Luckily ssh config also supports this!

Host host1
  HostName host1.example.com

Host host2
  HostName hidden.host1.example.com
  ProxyJump host1
Reply via Email Buy me a Coffee
Was this useful? Feel free to share: Hacker News Reddit Twitter

Published a response to this? :