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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.