Bitbucket: repository access denied. deployment key is not associated with the requested repository

After several hair-pulling hours of frustration I managed to identify an issue I was having with bitbucket and all of my repositories.

When attempting to pull, push, clone, or perform any action in a bitbucket git repository I was met with the following:

This apparently was caused by a failed ssh identity in MAC OSX after a recent update to OpenSSH. I have no logical explanation, but the solution was quite simple:

ssh-add ~/.ssh/PRIVATE_KEY_NAME

For most people, that means: ssh-add ~/.ssh/id_rsa

3 Replies to “Bitbucket: repository access denied. deployment key is not associated with the requested repository”

Leave a Reply

Your email address will not be published. Required fields are marked *