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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,007 views 1 5
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