SourceTree doesn't find ssh for git pull/push

Hi,

I'm running SourceTree and Git on MacOSX Lion and I was very happy with its functionality. The CLI Git is working fine with my remote repository.

Concerning SourceTree, it worked fine until I rebooted my Mac. After this, it returns the error:

error: cannot run ssh: No such file or directory
fatal: unable to fork

Is SourceTree expecting ssh at a certain location or using an environment variable to define the path? My ssh is located at /usr/bin/ssh. I couldn' find any configuration parameter in this direction

Thanks for any help Bernhard

5 answers

1 accepted

I solved it: it seems to be a rights issue. When I started ST explicitly via open -a SourceTree the issue vanished. Obviously, the App in the doc had other rights which led to the failure.

Hi Bernhard,

I have the same issue as you do. Did you end up changing anything so you could open and run ST properly simply by clicking the Application icon? (As opposed to using the open command in terminal?)

Vern

Hi Vern, no the workaround is still in use. It's kind of OK since I'm not starting so often my Mac. The new version of SourceTree (1.9.4.1) doesn't fix this issue. I think to fix this one has to understand the exact mechanics of the doc which I didn't follow up.

Regards Bernhard

Oh right. No problems. Thanks for replying though.

Cheers,

Vern

Bernhard,

using open -a fixed the problem for me too, but no idea what the cause is.

thanks,


Dan

Hi Harry, thanks for your answer. The problem, however, is not the authentication but the fact that the ssh binary is not found. BTW: The authentication tab in you links does not exist in the MacOSX version, surprisingly.

There are two ways to configure ssh in sourcetree, please refer to http://stackoverflow.com/questions/17790375/sourcetree-on-windows-how-to-connect-to-ssh

I solved it: it seems to be a rights issue. When I started ST explicitly via open -a SourceTree the issue vanished. Obviously, the App in the doc had other rights which led to the failure.

I found a permanent solution for me: adding GIT_SSH environment variable pointing to /usr/bin/ssh in my bash_profile and launchd conf lets me start sourcetree from my dock without that error.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Agility Beta

We've moved!

A note to all watchers that we've moved to a new community home... https://community.atlassian.com/t5/Agility/ct-p/agility Please update your notification subscriptions to keep across the ...

96 views 1 2
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