Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error message "Someone has already registered this as a deploy key" on BitBucket

I'm trying to clone a git repo on my bitbucket account, but am getting this error message when trying to do the clone this repo. to a new PC I've set up:

Cloning into 'xxxxx'... repository access denied. deployment key is not associated with the requested repository. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

And when I try to add the ssh key for this new machine to bitbucket, I get this error:

Someone has already registered this as a deploy key.

So it looks like I may have accidentally registered the ssh key for this machine as a deployment key at some stage. How do you locate which repo in bitbucket actually has this key registered as a deployment (as opposed to regular ssh access) key?

Sorry if this is not posted in the ideal place, I'll move it over to another SO section if there's one more relevant.

like image 415
SeanLabs Avatar asked Nov 21 '17 23:11

SeanLabs


People also ask

What is a deploy key in Bitbucket?

Deployment keys allow users to clone/pull source from a repository over SSH using Git and Hg without having to use up one of their plan limit users.

How do you add a deploy key?

From your repository, click Settings. In the sidebar, click Deploy Keys, then click Add deploy key. Provide a title, paste in your public key. Select Allow write access if you want this key to have write access to the repository.

How do I add a key to Bitbucket?

From Bitbucket, go to the repository and click Repository settings. Click Access keys from the left menu. Press Add key. From the Add SSH key dialog, enter a Label and paste the public key from the clipboard.


1 Answers

You can see where that key has been added with an SSH command: ssh -Ti /path/to/key [email protected]. It should come back with something like this:

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:

owner/repo: Test key - [email protected]
like image 184
Jim Redmond Avatar answered Oct 23 '22 04:10

Jim Redmond