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

SourceTree hangs when pushing unless I re-add my ssh key

Every time I close and re-open SourceTree it hangs when I try to push commits, this being all the farther it gets:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
Pushing to git@taji34:taji34/Troncraft.git

The only thing that fixes the problem is re-adding my ssh key, then everything works until the next time I close it. I'm using OpenSSH, is this a known problem and/or does it have a solution? If not I can live with it, it's just a tad bit annoying.

4 answers

The push address seems to have a password in it.

Do you have Tools\Options\Automatically start SSH agent... switched on? If not, it probably hangs because OpenSSH in not running when you push.

Yes it is checked, but it's greyed out, so I don't think that is an option for OpenSSH.

Could you check if OpenSSH is actually running when you push?

Is there an easy way to check that?

Only my account is allowed to push to that repository. But I'm not having issues there, since I am able to push, it just seems that OpenSSH forgets that my SSH keys exist or something, so I have to re-add them everytime.

I've been experience this (or a similar) problem, SourceTree hangs at this same point, although the push is successful. I never experience a problem doing a regular git push from a shell though.

I'll keep you updated if I discover anything more.

Doh, i've just realised this question is over a year old, did you find a solution?

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,150 views 0 11
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