Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
resetting the router

Kaleb McKone krmckone

💭
resetting the router
View GitHub Profile
@krmckone
krmckone / multiple-ssh-keys-krm.md
Last active Dec 12, 2020
Use multiple SSH keys for multiple GitHub accounts without modifying ~/.ssh/config
View multiple-ssh-keys-krm.md

Using multiple SSH Keys for multiple GitHub accounts

If you are using separate GitHub accounts to help manage different silos of work (personal, work, etc), you can use a combination of directory structure and .gitconfig files to manage your commit authorship details and SSH keys.

Ensure that you have already created/added SSH keys to ssh-agent and have added them to your corresponding GitHub accounts.

Other guides on this problem encourage modifying your ~/.ssh/config file to use a different SSH key