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 votes

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

2,286 views 9 12
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