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

boyuxu May 26, 2017

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 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2017

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 Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events