I've two Bitbucket accounts. One for office and the other is personal. Now I've also created two SSH keys for these accounts and added the keys but seems now I can't access to my personal account.
When I try git push -u origin develop
, I get this error:
repository access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
This is my .ssh/config
file:
1 Host bitbucket.org
2 User git
3 Hostname bitbucket.org
4 IdentityFile ~/.ssh/id_rsa_bitbucket
5 TCPKeepAlive yes
6 IdentitiesOnly yes
7
8 Host bitbucket.org
9 User git
10 Hostname bitbucket.org
11 IdentityFile ~/.ssh/id_rsa
12 TCPKeepAlive yes
13 IdentitiesOnly yes
First one is for my office and 2nd one is for my personal account. Any idea how can I solve this problem?