Created
May 18, 2018 14:41
-
-
Save blndev/8f7e2d1bc9981d6e5a1e3d846ea2a58c to your computer and use it in GitHub Desktop.
Useful configuration for ~/.ssh/config File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 [email protected] | |
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