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

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 votes

 

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
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 ...

191 views 3 6
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