You can also configure multiple ssh keys through Github subdomains in your ssh conf file. While github ignores the subdomain your ssh-client will pick the corresponding ssh key bas d on the used subdomain in your repo url.
So “work-github” can be a Host entry (with a HostName of github.com) and key A. While “play-github” would use key B.
Of course, I can test it myself, but since somebody already does that I assumed I could just ask.
That was my interpretation of the original comment. (reading it again, it seems like it was indeed saying what I typed below)
It seems like the reply was saying instead you can do in your .ssh/config file
Host work.github.com
HostName github.com
Host me.github.com
HostName github.com
(or just leave out the .github.com in the Host part)So `ssh git@me.github.com` now works...
And then key the github config off of that? But I didn't try that part. So I could be wrong there.
It works even for same hostname like I did here - https://github.com/hashhar/dotfiles-tmp/blob/master/ssh/.ssh...