I can't push to Bitbucket and this is the error message:
> git push origin master:master
Unauthorized
fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.
Debugging, I receive this message when I ssh to bitbucket:
> ssh -T bitbucket.org
authenticated via a deploy key.You can use git or hg to connect to Bitbucket. Shell access is disabled.
This deploy key has read access to the following repositories:
my-username/my-repository
The read access part of this message is suspicious.
PS: I know there are dozens of similar questions, but I couldn't find the exact error message here and only got the solution outside. That's why I'm self answering this to help others.