Skip to content

Instantly share code, notes, and snippets.

@ktaragorn
Created July 5, 2016 03:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ktaragorn/081a64ad54d29ffd9a6acebc7b1ce5e1 to your computer and use it in GitHub Desktop.
Complicated ssh config with wildcards and DRY settings for many machines. http://stackoverflow.com/questions/38194800/ssh-config-file-setup-with-wildcards-and-dry
Host shortname1?
Hostname %h.prod.xyz.com
Host test-myname
Hostname combo.test-myname.xyz.com
Host *.xyz.com
Hostname %h
Match Host *.xyz.com
User myuser
Port 12345
IdentityFile ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment