Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Sandeep Kumar May 15, 2023

Hi Team,

 

I have used the ssk key in one bit account and wanted to use the same ssh key in another bit bucket as i have multiple bit bucket accounts to be connected to jenkins server via ssh.

 

Could you please advise on this please.

 

Thanks & Regards,

Sandeep

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 16, 2023

Hi Sandeep and welcome to the community!

The error message from your post's title indicates that the public key has been added as an Access key to a repository and not to an account.

If you have added a certain public key as an Access key to a repository, you can also add this to the Access keys of other repos (from Repository settings > Access keys), or to the Access keys of a project (Project settings > Access keys). Access keys will provide read-only access to the repos they have been added to (or to the repos belonging to a project you have added the key to).

However, a key you have added as an Access key, cannot be added to the SSH keys of an account (https://bitbucket.org/account/settings/ssh-keys/) at the same time.

It is also not possible to add an SSH key used by a certain account to a different account (because we use the key to identify the authenticated user).


If you need read-only access, instead of adding this key to an account, you can add it as an Access key to the other repos or projects.

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

0 votes
Baskar Annamalai May 15, 2023

Hi @Sandeep Kumar

This is possible if you are binding the SSH key with a single email ID. Not sure if Jenkins would be able to identify the different accounts based on the SSH key. I would recommend giving a shot at the following KB - Managing multiple Bitbucket user SSH keys on one device 

Best regards,
Baskar Annamalai
ServiceRocket.

Suggest an answer

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

Atlassian Community Events