I currently have my config
file for ssh set up as follows:
Host bitbucket.org-account1
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa_account1
IdentitiesOnly yes
Host github.com-personal
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_personal
IdentitiesOnly yes
Host *
IdentityFile ~/.ssh/id_rsa
When I am trying to clone from my account1
account, it keeps prompting me for my id_rsa
key, instead of the id_rsa_account1
key. This is the ssh command I am trying to run:
git clone [email protected]:account1/my.cool.project.git
Any idea what may be causing the confusion between the RSA keys? Have I misconfigured the SSH config file?