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 Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

678 views 5 9
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