Forums

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

ssh key for more than one repository

base2workshop
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!
September 7, 2018

Given that I have a repository, and have been committing to it and using an SSH key successfully...

I thought that the same SSH key would be used for a new repository I just created.  Pushing an initial commit failed authentication, and so I thought maybe it's just a matter of adding that key to the new repository.  That failed, BitBucket said the key is already in use.  

I thought one key allows me access to BitBucket for all my repositories within this account (where as I understand an account to include the set of created repositories that I can access with one username and password).

So, since I have already created an SSH key, is there a reason I seem to not authenticate with this new repository?

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2018

Hi, welcome to the Community! 

The SSH account is valid for the whole Bitbucket account and all the repositories contained in it, Bitbucket uses the key pair to authenticate anything the associated account can access.

The repository you're trying to access, can you confirm you own it? Do you have the right permissions to access it? Are you pushing it from the same machine where you created the SSH key?

Kind regards,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events