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

This widget could not be displayed.

The push address seems to have a password in it.

This widget could not be displayed.

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?

This widget could not be displayed.

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.

This widget could not be displayed.

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 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...

877 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