Skip to content

Instantly share code, notes, and snippets.

@OldCrowEW
Created August 22, 2016 16:17
Show Gist options
  • Save OldCrowEW/86d5fd8c8fd75f5ad7239cde1eb5d794 to your computer and use it in GitHub Desktop.
Save OldCrowEW/86d5fd8c8fd75f5ad7239cde1eb5d794 to your computer and use it in GitHub Desktop.
Host *.example.internal
ProxyCommand ssh -W %h:%p bastion -F group_vars/site-location/dot_ssh/ssh_config
User aws-user-internal
IdentityFile ~/.ssh/id_rsa_hostname
Host bastion
Hostname example.com
User ec2
IdentityFile ~/.ssh/id_rsa_hostname2
ForwardAgent yes
ControlMaster auto
ControlPath ~/.ssh/ansible-%r@%h:%p
ControlPersist 5m
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment