Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,926
Community Members
 
Community Events
165
Community Groups

Can't use ssh key twice at two different Bitbucket Workspaces

Hi,

I have two Bitbucket workspaces who are connected with my Bitbucket Account.

I have added at one workspace to one repository a  ssh key as an "Access Key".
It's the key from a jenkins server user.

Now i need in another workspace also for the jenkins user access for the jenkins user.
But I can't add the because of the error "Someone has already added that SSH key to another account." but the jenkins user can't get access to this repro
how can i solve the problem with these two workspaces?

1 answer

0 votes
Caroline R Atlassian Team Aug 06, 2021

Hi, @Andree Holz! Welcome to the community! 

You can't use the same key between accounts. You must create new keys for each individual Bitbucket account.

In this case, I would suggest you add this SSH key on this Jenkins user (not as an access key to the repository) and give them read access to the repositories you need. This way, you can use this SSH key on multiple workspaces/repositories.

In case you would like to read more about SSH keys, you can access the following link:

I hope this helps, but please let me know if you face any obstacles. 

Kind regards,
Caroline

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,170 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you