Forums

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

Bitbucket is confused about SSH keys

Wayne Ritchie
Contributor
August 1, 2019

I go to add my public SSH key via Settings > SSH keys; there isn't anything there. "There are no keys configured"

I click the Add key button, provide an appropriate Label and paste in my public key.  I get an error "Someone has already added that SSH key.".

This seems odd, there are no keys, but I can't add one because there is one there...what?  I'm more of a GitHub guy but in this case I'm reduced down to having to deal with and use Bitbucket!

2 answers

0 votes
Aliaksei
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!
August 23, 2019

Just create another one SSH-key by command:
ssh-keygen -t rsa

Then "ssh key generator" will ask you the name for your key, just type for instance:
bitbucket_key

Then edit (or create) the file ~/.ssh/config. Need to add the host for your key. The content of the file should look like this:

Host *

  IdentityFile ~/.ssh/id_rsa

 

Host bitbucket.org

  IdentityFile ~/.ssh/bitbucket_key


Do not forget to add your bitbucket_key.pub key to your Bitbucket account!


Enjoy! :)


0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2019

Hey @Wayne Ritchie,

You seem to be trying to use the very same SSH key in different accounts in Bitbucket. SSH keys uniquely identify users, so they have to be unique across Bitbucket.

Hope this helps.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events