Skip to content

Instantly share code, notes, and snippets.

@sharkyak
Created March 25, 2021 09:06
Show Gist options
  • Save sharkyak/f286f6afb967fcc6f6e2a7f43b693855 to your computer and use it in GitHub Desktop.
Save sharkyak/f286f6afb967fcc6f6e2a7f43b693855 to your computer and use it in GitHub Desktop.
github ssh key
~/.ssh/config
Host gitolite-as-alice
HostName git.company.com
User git
IdentityFile /home/whoever/.ssh/id_rsa.alice
IdentitiesOnly yes
Host gitolite-as-bob
HostName git.company.com
User git
IdentityFile /home/whoever/.ssh/id_dsa.bob
IdentitiesOnly yes
git remote add alice git@gitolite-as-alice:whatever.git
git remote add bob git@gitolite-as-bob:whatever.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment