I have the same email and username of github and bitbucket accounts. I can easily add my github account and it works smoothly. After I add the bitbucket one and try to clone a remote repo, I get this error:
Please make sure you have the correct access rights
fatal: Could not read from remote repository.
and the repository exists.
Forbidden
It doesn't throw any authentication errors, so creds are fine. The only thing I can do right now is to see my public remote repositories. In the bitbucket SSH keys settings, I see Never used in the Last used column. Moreover, I've removed .ssh folder and set up everything from scratch - doesn't work. I've also tried to generate Bitbucket SSH key myself - doesn't work.
I also have a default Bitbucket account and it works perfectly fine.
Mac OS 10.15.2
Sourcetree 4.0.1
Embedded Git 2.23.0 (in use)
System Git 2.24.1 (switching doesn't help)
Try adding the following lines to your ssh configuration file. In my Ubuntu, it is ~/.ssh/config
Host bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.