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

0 votes
Answer 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
Community showcase
Published in Agile

Webinar: Dean Leffingwell and Steve Elliot present on SAFe 5.0, come ask Dean and Steve questions!

...steemed Steve Elliot (head of product for Jira Align). Agenda: What’s new or changed in SAFe 5.0: Introduction of OKRs Essential SAFe How to achieve true business a...

130 views 0 1
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