The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Accessing a bitbucket repository from multiple computers doesn't work consistently

Dean Schulze
July 30, 2013

Accessing my repo from multiple computers doesn't work consistently. From a new computer I use ssh-keygen to generate a new public/private key pair. I upload the public key to my SSH Keys page of the repo. Then I run ssh-add on the new private key. ssh-add -l confirms that it has been loaded.

This worked one time, but when I tried to do it a second time to access a second repo it doesn't work. I get

conq: repository access denied. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

This worked the first time I tried it. I need to access a second repo, but this doesn't work for the second repo. Botth times I did this from Ubuntu 13.04.

Why does this not work consistently? If this isn't the right way to access a repo from multiple computers what is the correct way?

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Dean Schulze
July 30, 2013

It looks like I've run into this issue:

https://bitbucket.org/site/master/issue/1660/ssh-problems-with-multiple-accounts

Also, I should have titled this question "Accessing multiple bitbucket accounts with ssh from the same computer doesn't work consistently"

Apparently I'm going to have to set up an alias in ~/.ssh/config for each account / repo I use, which is a little extra work.

0 votes
smaved
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!
November 20, 2015

Hi Dean,

 

You need to remove the ssh key from your another account. I too had that problem , after i removed the key from another account things were back to normal. may be there is a way to configure multiple keys

0 votes
Dean Schulze
July 30, 2013

Some more info. The two repositories I'm accessing are from two different bitbucket accounts. When I run

ssh -T -v git@bitbucket.org

it shows that it is trying to login as the username for the other bitbucket account.

When I run

git config -l

in the project directories it shows the remote origin URL for the correct bitbucket account for each project.

What changed since I originally cloned the first project was that I cloned a second project from a different bitbucket account / repo and did ssh-add for key for that account / repo.

I really can't figure out what going wrong here.

TAGS
AUG Leaders

Atlassian Community Events