Created
October 20, 2020 17:31
-
-
Save todd-dsm/a44e49a95a7d849cb0dd3b6b8c66e094 to your computer and use it in GitHub Desktop.
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
# DO NOT UNCOMMENT THIS | |
#Host * | |
# UseKeychain yes | |
# AddKeysToAgent yes | |
# IdentityFile ~/.ssh/id_rsa | |
# StrictHostKeyChecking no | |
## Personal GitHub account | |
Host github.com | |
HostName github.com | |
User git | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/id_rsa | |
StrictHostKeyChecking no | |
## Work GitHub account | |
Host github.com-work | |
HostName github.com | |
User git | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/aus_rsa | |
StrictHostKeyChecking no | |
## GitLab.com | |
Host gitlab.com | |
User git | |
AddKeysToAgent yes | |
UseKeychain yes | |
Preferredauthentications publickey | |
IdentityFile ~/.ssh/aus_rsa | |
StrictHostKeyChecking no | |
Host *compute.amazonaws.com | |
User user.name | |
UseKeychain yes | |
CheckHostIP no | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null | |
IdentityFile ~/.ssh/id_rsa | |
AddKeysToAgent yes | |
## SOME OTHER HOST | |
Host sftp-DEV | |
HostName $HOSTNAME / $IPADDR | |
User ubuntu | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/sftp-jinsong | |
StrictHostKeyChecking no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment