Skip to content

Instantly share code, notes, and snippets.

@todd-dsm
Created October 20, 2020 17:31
Show Gist options
  • Save todd-dsm/a44e49a95a7d849cb0dd3b6b8c66e094 to your computer and use it in GitHub Desktop.
Save todd-dsm/a44e49a95a7d849cb0dd3b6b8c66e094 to your computer and use it in GitHub Desktop.
# 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