Problem: "Someone has already added that key as an access key to a repository."
Asked by djozsef:

I cannot add my SSH key to my account because of this: "Someone has already added that key as an access key to a repository."

I have checked all the places (company user, all the repositories I see etc.) but this key is not associated to none of the repositories nor users I know of.

I have tried to SSH bitbucket.org, but is does not say any details:

```
$ ssh -T git@bitbucket.org
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
```

The identity used for SSH authentication is correct\> I have a single SSH key (available from ssh-agent, stored on a gpg card).

Could anybody please suggest/help how to remove my public key from places I do not have access to?

No, using multiple SSH keys is not an option.

Thank you


Answers:
author: Theodora Boudale
body: Hi everyone,

If you came across this question because you are facing the same error, we want to ensure you get help. We ask that you please create a new question through <https://community.atlassian.com/t5/forums/postpage/board-id/bitbucket-questions>

Kind regards,  
Theodora


author: djozsef
body: The solution was provided by Atlassian support. They can tell you what account/repo is your key assigned to. Then you can contact the owner and ask to remove it.

comments: author: fv-jordan
body: Okay, awesome thank you for your reply!


author: fv-jordan
body: Hey! I am having the same problem currently. When I run

```
$ ssh -T git@bitbucket.org
```

I receive:

```
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
```

<br />

I don't have another ssh key and would prefer **not** to create a new one. Is there a solution?

comments: author: fv-jordan
body: hey [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

as [@djozsef](/t5/user/viewprofilepage/user-id/4620153) recommended I sent in a request for support help last week but have not yet heard back. Is there any way you could expedite the process by creating a support ticket for me as well? I appreciate any help!

Thank you!

Jordan


author: Theodora Boudale
body: Hi [@fv-jordan](/t5/user/viewprofilepage/user-id/3319759)

Your support ticket was created with a team other than Bitbucket Cloud support, I reached out to them and they've transferred your ticket to the appropriate team.

Could you please share in the support ticket the public SSH key you are trying to add? If we have the public key, we can then search in our system and see which account or repo(s) it is associated with.

Kind regards,  
Theodora


author: fv-jordan
body: Hey [@Thedora Duncan](/t5/user/viewprofilepage/user-id/2453095) thank you so much for your help! I really appreciate it :)  

Should I expect to receive an email for the support ticket in order to add the my public key there? I haven't received any emails or notifications as of yet and am not sure how else to find the support ticket.  

Thank you again!

Jordan


author: Misha Kvach
body: Hey! I am having the same problem when I try to run

```
$ ssh -T git@bitbucket.org
```

I receive:

```
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
```

<br />

I don't remember which account uses my key, can you please help?

comments: author: Theodora Boudale
body: Hi [@Misha Kvach](/t5/user/viewprofilepage/user-id/4788586),

There is no Bitbucket Cloud account in our system with the same email as your community account. We won't be able to share any details regarding your SSH key if the email used for the support ticket doesn't have access to the account or repo(s) in question.

I assume you have a Bitbucket Cloud account with a different email where you are trying to add the SSH key?  
If so, could you please log in <https://community.atlassian.com/> using that email and leave a comment here? I will then be able to view that account's email and can proceed with creating a support ticket using that email.

Kind regards,  
Theodora


author: _henrik
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) I have the same problem. Could you also create a support ticket for me?

comments: author: Theodora Boudale
body: Hi [@_henrik](/t5/user/viewprofilepage/user-id/4787223) ,

I created a support ticket for you using the email of your community account, you should have received an email with a link to the support ticket.

Please leave a comment in the support ticket with the public SSH key you are trying to add, so the engineer working on the ticket can check where this key has been added to.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


author: Leszek Kledzik
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) i have the same situation. When i'm trying to add SSH key i got error message:  
>
> ```
> Someone has already added that key as an access key to a repository.
> ```

when i type in terminal

```
 ssh -T git@bitbucket.org
```

i got a message

```
authenticated via ssh key.

?

You can use git to connect to Bitbucket. Shell access is disabled
```

comments: author: Theodora Boudale
body: Hi [@Leszek Kledzik](/t5/user/viewprofilepage/user-id/4781050),

I have created a support ticket for you using the email of your community account, you should have received an email with a link to the ticket.

The ticket will be visible only to you and Atlassian staff, so you can leave a comment there and share the public SSH key. An engineer from Bitbucket Cloud support team can then check where this SSH key has been added to.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


author: Theodora Boudale
body: Hi [@djozsef](/t5/user/viewprofilepage/user-id/4620153),

I created a support ticket for you for this issue, using the email of your community account. You should have received an email with a link to the support ticket (in case you haven't, please feel free to let me know and I can post the ticket URL here).

The support ticket will be visible only to you and Atlassian staff, so:  
- You can share in the support ticket the public SSH key you are trying to add  
- The support engineer working on your ticket can check which repo(s) it is associated with  
- If it is associated with a repo you have access to, they can give you the repo(s) URL

If you have admin access to the repo(s) this key is added to, you will be able to remove the SSH key yourself. If you don't have admin access, you can ask the owner or another admin of the repo(s) to remove the SSH key.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora

comments: author: djozsef
body: Hello Theodora,

Thanks a lot. I'll share my public key right away at the support ticket. I'll keep the community informed about the resolution here if there would be any useful information.


Tags: atl-gruland

bitbucket-cloud

cloud