Skip to content

Instantly share code, notes, and snippets.

@kvendrik
Last active August 30, 2015 12:20
Show Gist options
  • Select an option

  • Save kvendrik/31cfdc43d8047e7df884 to your computer and use it in GitHub Desktop.

Select an option

Save kvendrik/31cfdc43d8047e7df884 to your computer and use it in GitHub Desktop.
Managing Multiple SSH Keys
# ~/.ssh/config
Host bitbucket.org
User git
Hostname bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Host bitbucket-accountB
User git
Hostname bitbucket.org
PreferredAuthentications publickey
IdentitiesOnly yes
IdentityFile ~/.ssh/accountB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment