alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

ssh-jump-host.txt (707B) [raw]


      1 Connecting via SSH Through a Jump Host
      2 --------------------------------------
      3 
      4 Sun Sep 11 21:51:55 EDT 2022
      5 
      6 I frequently want to SSH to a host behind a firewall or router (for
      7 instance, in our cloud network or on my personal network, which has a
      8 router in between the wired and wifi parts).
      9 
     10 In such cases, using the `ProxyJump` part of the ssh_config(5) file
     11 can allow connecting without the hassle of multiple connections.
     12 
     13 More importantly, for tools that transport on top of SSH (i.e.
     14 rsync(1)), this will allow connections transparently, as if the remote
     15 host was reachable directly.
     16 
     17 
     18 Here's an example:
     19 
     20     Host foo.tld
     21         User user
     22         Hostname 10.0.0.2
     23         ProxyJump user2@jump.host