I have a repo in bitbucket on vinay-joseph. I also have repos in bitbucket on vinayjoseph.
Here is the contents of my ~/.ssh/config file
Host workid
HostName bitbucket.org
User vinay-joseph
IdentityFile ~/.ssh/xxxx
Host personalid
HostName bitbucket.org
PreferredAuthentications publickey
User vinayjoseph
IdentityFile ~/.ssh/yyyy
from my repo when i run ssh -T hg@bitbucket.org, I get the following
logged in as vinay-joseph.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
SSH keys have been stored in bitbucket for the relevant repos.
However, when i try to push i get the following error.
git push origin master
conq: repository access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ssh-add -l gives
ssh-add -l
2048 cc:15:1d:e4:ac:c6:28:eb:2a:6f:41:0e:53:62:53:c7 /Users/rr/.ssh/xxxx (RSA)
2048 4f:51:5a:49:cb:da:41:2f:08:a2:2f:05:dc:2a:63:dc /Users/rr/.ssh/yyyy (RSA)
I want to use my personalid to check in the code. Please help.