I use my computer for many different things, as I’m sure many devs do. But I only have one public ssh key, and I hope to keep it that way. I have two accounts for github.com: one for personal use, and one for my employer.
So, when I am using the account with my employer, I’m trying to add my ssh key as I usually do, by clicking “Profile” and then “Settings” and then “ssh and gpg keys”. And then I paste my id_rsa.pub contents, and click “add ssh key”. But it is giving me the following:
“Key is already in use”
And of course that is because I am using that key for my personal account. How do I allow this key to also be used for my employer account with github? Thank you.
As an additional inquiry, I do not understand why it matters if the same public key is used twice for two different accounts. What is the harm in that? and why does github not allow that?
There seems to be a difference between committing using different ssh keys at the host level, and at the repo level.