Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

sourcetree can't push after updating to latest version

John January 16, 2018

After updating to version 2.7 (macOS Sierra), source tree can't push anymore.

Pushing to ssh://git@git.abc.com/abc.git

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

I can push though from the command line after entering my passphrase. I can fetch and pull with no problem from source tree.

1 answer

1 accepted

4 votes
Answer accepted
Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2018

You can check if the keys are loaded to the agent and if not, load them manually. This would just work fine with Sourcetree.

To check if key is loaded, use this command

ssh-add -l 

To load keys, use this command

ssh-add <path_to_key> 

e.g.,

ssh-add ~/.ssh/id_rsa 

 

Additionally, please check if the account added in Preferences and remote URL used for clone match protocols (both are ssh).

John January 18, 2018

Thanks, it worked

Like Adebayo Dada likes this
Adebayo Dada November 6, 2018

Worked!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events