Skip to content

Instantly share code, notes, and snippets.

@gmas
Created April 3, 2015 01:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmas/43dd0c179d46eb834824 to your computer and use it in GitHub Desktop.
Save gmas/43dd0c179d46eb834824 to your computer and use it in GitHub Desktop.
SSH through jump server
#ssh_config
#use with ssh -F ssh_config user@<TARGET_SERVER_IP>
Host *
ServerAliveInterval 60
TCPKeepAlive yes
ProxyCommand ssh -q -A gmasgras@<JUMP_SERVER_IP> nc %h %p
ControlMaster auto
ControlPath ~/.ssh/mux-%r@%h:%p
ControlPersist 8h
User ubuntu
StrictHostKeyChecking no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment