Skip to content

Instantly share code, notes, and snippets.

@eatgrass
Created October 4, 2015 06:04
Show Gist options
  • Save eatgrass/62e023c237b60798b12f to your computer and use it in GitHub Desktop.
Save eatgrass/62e023c237b60798b12f to your computer and use it in GitHub Desktop.
ssh config file for muti keypairs
#gitlab
Host 10.1.1.188
HostName 10.1.1.188
IdentityFile ~/.ssh/id_rsa_gitlab
#github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_github
#default: will use id_rsa as private key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment