Permission denied (publickey)

Hi guys,

 

Yesterday I was working on one of my projects in the afternoon. I pushed everything succesfully, when I wanted to continue in the evening I certainly wasn't able to get into the project anymore.

 

When I'm logged in on Bitbucket I have writing access for all the projects, but I can't write nor download anymore.

 

When I want to push a commit or load a new rep I get the following errors;

This is not a valid source path/ URL

 

And also this error log

Permission denied (publickey).

fatal: Could not read from remote repository.


Please make sure you have the correct access rights

and the repository exists.

Permission denied (publickey).

fatal: Could not read from remote repository.


Please make sure you have the correct access rights

and the repository exists.

Permission denied (publickey).

fatal: Could not read from remote repository.


Please make sure you have the correct access rights

and the repository exists.

Permission denied (publickey).

fatal: Could not read from remote repository.


Please make sure you have the correct access rights

and the repository exists.

Does anybody know how to fix this? I already reinstalled Sourcetree and tried to reset it but it didn't work and to get a new publickey (which didn't work).

2 answers

This widget could not be displayed.

Hi Sander,

Can you run the following from your terminal, and let us know if your SSH key is loaded:

 

ssh-add -l

Cheers,
Gary

Hi Gary,

 

The result I got is; The agent has no identities.

So I suppose the SSH Key isn't properly loaded, how can I fix that?

 

Cheers Sander

Gary Sackett Atlassian Team Aug 29, 2017

Hi Sander,

I usually load my key from the terminal using:

ssh-add .ssh/"ssh_key_file"

Cheers,
Gary

Gary Sackett Atlassian Team Aug 29, 2017

Hey Tim, Sander,

That issue is very specific to Pipelines, and was caused by an issue on the platform.

Cheers,
Gary

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

878 views 2 3
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