Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I cannot clone my own repository Edited

Hi,

I cannot clone my repository. I have my SSH keys associated with my account but It tells me:

```

Cloning into 'devops'...
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

I am the admin of this repository.

 

When I try to clone the repository with HTTPS I got this:

```

Cloning into 'devops'...
remote: Invalid username or password
fatal: Authentication failed for 'https://bitbucket.org/xxx/devops/'

```

I've tried with my user and my email, but It does not work.

I don't understand what's happening.

My SSH key is associated with my account, and I have a unique key. (I don't need .ssh/config) file.

2 answers

1 vote

Hi Álvaro and welcome to the community.

For the issue with SSH, could you please run the following command on the machine you are trying to clone from, and attach the full output here?

ssh -Tvvv git@bitbucket.org

This will give more verbose output and very possibly an indication on what may be going wrong with SSH authentication. Please feel free to sanitize in the output your Bitbucket username (in case authentication succeeds and it shows there), or the local paths to your ssh key and known_hosts that show in the output, if you don't want them to be publicly visible.

Regarding HTTPS authentication, are you cloning from a command line tool or a Git GUI client?

1) If you're using a Git GUI client, I would suggest checking if there are any credentials stored for bitbucket.org and clear them.
2) Double check if you can log in with your password in https://bitbucket.org/ via browser. Just a note here, that logging in from browser requires an email, but when cloning/pulling/pushing via HTTPS, you should use your Bitbucket username.
3) I see that the HTTPS URL of the repo in the output doesn't include a username (not sure if you removed it from the output or if it was not included in the clone URL at all). Do you get asked for a username and password when you try to clone via HTTPS?

Kind regards,
Theodora

Info updated in my answer.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,558 views 1 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you