Create a file ~/.ssh/config
If you have 2 keys, for example: id_rsa
for your personal, and id_work
for your work, set the config as:
|
|
Now, when cloning or adding remote, change the github.com
in the clone url is changed to github-work
|
|
Read Next
I’m running an experiment for better content recommendations. These are the 3 posts that are most likely to be interesting for you:
-
Generate PEM file for any Linux user
Unlock the full potential of secure, passwordless connections by mastering the creation of a 4096-bit RSA key pair, a perfect next step after setting up your multiple GitHub accounts. -
Accidentally deleted your .bashrc?
After mastering multiple GitHub accounts with SSH keys, learning to tweak your .bashrc file could be your next step to becoming a Linux power user. -
Discord Notifications from Systemd
After mastering multiple GitHub accounts with SSH keys, you’ll love learning how to keep tabs on your services with Discord notifications, making your workflow smoother and more connected.