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 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 Join to answer
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...

651 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot