Permission denied (publickey). fatal: Could not read from remote repository.

XavierTXY I'm New Here Jan 22, 2018

Please make sure you have the correct access rights

and the repository exists.

git@bitbucket.org: Permission denied (publickey).

fatal: Could not read from remote repository.

 

 

The error above is what I am getting when I want to clone a repo from bitbucket using source tree.  It used to be working before, then I wanted to push to that repo then it didnt work, so I reinstalled source tree but it still give me the errors

1 answer

0 vote

 

Hi Xavier, looks like the credentials you're using are not correct, or you no longer have access to that repo. You can check the keychain to make sure the credentials there are not corrupted, and make sure your Bitbucket account is connected following the steps at Connect your Bitbucket account. Can you answer the following:

  1. Are you able to perform other operations to that repo?
  2. Are you able to clone it from the command line?

If you can clone it through the command line, then the issue is entirely in Sourcetree side, my recommendation would be to wipe Sourcetree's preferences.

Cheers!

Ana

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,930 views 26 12
Join discussion

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