Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Version 2.7 failed to commit to origin Edited

Hi There!


After installing version 2.7. (latest release), SourceTree is not able to push to origin via ssh. Fetching and pulling from remote origin is possible and works as expected.

But when I try to push my local changes to the server, a "Permission denied" error occurred. BTW pushing using 

git push origin branch

works perfectly. So I'm assuming, that the problem is unrelated to the server.


Would be nice to have a workaround....



8 answers

Downgrading solved my problem too.

Adding my key to the ssh-agent helped and I can now push with the 2.7 version without error. Thanks Manjunath!

Downgrade to 2.6.3 solved my problem too, Thank you sooooo much ♪

I have the same issue. I am using SSH with password authentication, and it used to ask the password the first time, and then re-use it, and since 2.7 it looks like it is not able to do this any more.

Git pull works fine, but git push throws an error about ssh-askpass missing.

Any help?


I'm having this same issue. I'm able to git push from the command line for the pending Sourcetree push request without issue using the same SSH key with password. I'm on 2.7 (152).Messages Image(3025968649).png

Same here 2.7 (152) against Bitbucket Server 5.7 using http authentication. Rollback to 2.6.2 solved the issue.

Same here...

"Pushing to*********/********.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've got the same problem. Push from terminal works fine (asks for the SSH private key password). SourceTree doesn't ask for the password. Fetch operation works (this time ST asks for password but doesn't remember it in the keychain).


git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/***:refs/heads/*** 

Pushing to git@***.git

Permission denied, please try again.

Permission denied, please try again.

git@***: Permission denied (publickey,password).

fatal: Could not read from remote repository.


Please make sure you have the correct access rights

and the repository exists.

Completed with errors, see above


0 votes
Manju Atlassian Team Feb 05, 2018

Please check if the ssh-agent has your keys loaded. If not, please add them to the agent. 

Run below commands in terminal to do so,

To check if keys are loaded:

ssh-add -l

To add keys to agent:

ssh-add <path_to_key>

more like,

ssh-add ~/.ssh/id_rsa

Key in the passphrase used while generating the ssh key and you should be good to go. 

Hi Manjunath,


that does not help us guys who are having the issue when authenticating over http. As stated before a rollback to an older version of sourcetree solved the issue which for me is a strong indicator that the issue lies somewhere in the new release.

Well! Manjunath's hint solved my problem.

The new version seems to have changed the handling of ssh keys. Well. It works now and I have no reason to complain again.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,265 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you