Get an error when cloning others' repository "repository access denied"

I got an error when cloning others' repository, the error massage is :

D64BE1D7-0599-45A7-8CF3-174C6BC7A977.png

I also checked ~/.ssh/config and ssh-add -l, getting the result as follows, which indicates that my access key is assigned, and it uses the same key. 

However, I still cannot clone others' repository, it can only recognize my own repository. I have tried various way to solve this problem still get nothing right.

Anyone have some good idea? Thank you soooooooooooooo much.

D87A2E19-5643-408A-AF14-53EFF17CEB51.png

7CF96F6B-43D2-4543-BC81-184572489624.png

 

 

1 answer

0 vote

Hi!  Can you answer the following questions to help us troubleshoot this issue:

  1. Are you able to clone other repositories via SSH?
  2. Do you have permissions to access this repository, or is it a public repository? 
  3. Can you try cloning this same repo using HTTPS and see if it works?

If HTTPS works and you're still unable to use SSH, my recommendation would be to open a Support ticket and provide: 

  • Name of the repo you want to clone
  • Output of the following commands?
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -v" GIT_CURL_VERBOSE=1 git clone git@bitbucket.org:<username>/<  repo_name>.git   
ssh -Tvvv git@bitbucket.org

Best regards!

Ana

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

705 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot