Skip to content

Instantly share code, notes, and snippets.

@kevmo
Last active May 21, 2019 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevmo/31fa30b58f02712ae9b1f4fba2ba6050 to your computer and use it in GitHub Desktop.
Save kevmo/31fa30b58f02712ae9b1f4fba2ba6050 to your computer and use it in GitHub Desktop.
# General settings
Host *
StrictHostKeyChecking no
ForwardAgent yes
Compression yes
ServerAliveInterval 15
ServerAliveCountMax 4
UserKnownHostsFile /dev/null
User kmoore
Port 22
# Tista and the VA
Host stage
HostName 52.61.187.248
IdentityFile ~/.ssh/id_rsa_tista_va
ForwardAgent yes
DynamicForward 8888
GatewayPorts yes
Host stage+*
IdentityFile ~/.ssh/id_rsa_tista_va
ControlMaster auto
ProxyCommand ssh -T -A $(echo %h |cut -d+ -f1) nc $(echo %h |cut -d+ -f2) %p 2>/dev/null
StrictHostKeyChecking no
Host prod
HostName 52.222.110.120
IdentityFile ~/.ssh/id_rsa_tista_va
ForwardAgent yes
DynamicForward 8889
GatewayPorts yes
Host prod+*
IdentityFile ~/.ssh/id_rsa_tista_va
ControlMaster auto
ProxyCommand ssh -T -A $(echo %h |cut -d+ -f1) nc $(echo %h |cut -d+ -f2) %p 2>/dev/null
StrictHostKeyChecking no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment