Skip to content

Instantly share code, notes, and snippets.

@tyrcho
Created March 9, 2016 09:23
Show Gist options
  • Save tyrcho/72b5a5234e3722c5ea6f to your computer and use it in GitHub Desktop.
Save tyrcho/72b5a5234e3722c5ea6f to your computer and use it in GitHub Desktop.
ssh configuration to connect through a bastion (gateway)
Host *
ServerAliveInterval 60
StrictHostKeyChecking no
Host dockercobai
Hostname oscobai064s
ProxyCommand ssh -W %h:%p bastion
ForwardAgent yes
User www
IdentityFile "/c/Utilisateurs/a518291/.ssh/id_rsa_bastion"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment