21zoo Labs - Assorted Stuff

Configure SSH to use a Jump Host

Posted — Nov 26, 2017

Configure SSH to use a Jump Host for ssh connections:

[ Laptop ] --ssh--> [ Jump Host ] --ssh--> [ Host ]

~/.ssh/config

Host jump-host
  User jump-host-username
  Hostname << JUMP HOST IP >>

Host host
  User host-username
  Hostname << HOST IP >>
  ProxyCommand ssh -q -W %h:%p jump-host