Configure Personal and Work Github SSH configuration
Resources
Setup
# ~/.ssh/config
# github_work
Host github-work
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_work
IdentitiesOnly yes
# github_personal
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_personal
IdentitiesOnly yes
Then, in the work repo, make the following change in the .git/config
file:
[remote "origin"]
url = git@github-work:<username>/<repo>.git
Backlinks
dhruv's wiki
- [[configure-personal-and-work-github-ssh-configuration]]
Git
- [[configure-personal-and-work-github-ssh-configuration]]