I have two bitbucket accounts and ssh keys to match. I've seen many solutions to manage using multiple keys on the same host through aliasing, but unfortunately, I need my git references to be common.
The reason I need them to be common is because I'm working on shared projects with Pods. This means that the remote git source url needs to be the same for all developers working on the projects, but I can't guarantee that everyone will be able to setup the same alias as me and they shouldn't be expected to.
I've tried the foolish attempt at specifying my user accounts like so:
Host BitbucketA
HostName bitbucket.org
IdentityFile ~/.ssh/id_rsa
User UserA
Host BitbucketB
HostName bitbucket.org
IdentityFile ~/.ssh/id_rsa_userB
User UserB
Thinking that I could specify to use id_rsa_userB whenever I'm trying to access one of UserB's repositories. Unfortunately, that doesn't seem to be how it works.
Is there any way to accomplish what I want?