Skip to content

Instantly share code, notes, and snippets.

@blndev
Created May 18, 2018 14:41
Show Gist options
  • Save blndev/8f7e2d1bc9981d6e5a1e3d846ea2a58c to your computer and use it in GitHub Desktop.
Save blndev/8f7e2d1bc9981d6e5a1e3d846ea2a58c to your computer and use it in GitHub Desktop.
Useful configuration for ~/.ssh/config File
# github is separated from company and other logins
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_github
# dont have to remember the username
Host git-codecommit.*.amazonaws.com
User awscodecommitusername
IdentityFile ~/.ssh/id_rsa_aws
Host *.serverfarm.com
User blndev@whatever.co
IdentityFile ~/.ssh/id_rsa_farm01
Host bastion-*.oslab.opentlc.com
User trainee17653
IdentityFile ~/.ssh/id_rsa_farm01
Host *.cloudapp.microsoftazure.de
User blndev
IdentityFile ~/.ssh/id_rsa_azure_generic
# simple access
# ssh t-shortcut
Host t-shortcut
HostName a19986.germanycentral.cloudapp.microsoftazure.de
User root
IdentityFile ~/.ssh/id_rsa_azure_generic
Host *.company.org
User a17321
IdentityFile ~/.ssh/id_rsa_company
Host gitlab.company.org, gitlab
HostName gitlab.company.org
User a17321
IdentityFile ~/.ssh/id_rsa_company
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment