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

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


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.





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<username>/<  repo_name>.git   
ssh -Tvvv

Best regards!


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,747 views 1 5
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