Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ssh key

kunal basnet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2022

While trying to add the ssh key in bitbucket getting the following error: 


Someone has already added that key as an access key to a repository.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2022

Hi @kunal basnet and welcome to the community.

If an SSH key has been added to a repository as an Access key, then it will not be possible to add it to your account's SSH keys (unless you remove it from the repos' Access keys).

I see that your Bitbucket Cloud account has access to a small number of repos, so I would suggest following these steps to see if the SSH key is an Access key to any of those:

  1. Open a repository on Bitbucket website
  2. Select Repository settings from the left-hand menu
  3. Then select Access keys

Please check if the SSH key you are trying to add is listed on that page as an Access key.

If it is and if you don't need an Access key, you can remove it from that page and then add it to your account's SSH keys.

If you do need the Access key in the repo for other purposes, you can leave it there and then add a different SSH key to your account.

If the key is not added to any of your repos, but to a repo you don't have access to, then for privacy reasons we cannot share with you the details of any repos you don't have access to.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events