Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Error 'ssh-agent' failed with code -1: System.NullReferenceException


Hi, I have the latest SourceTree for Windows (version 3.4.8) and using Git standalone version I am using Windows OpenSSH for authentication.

SourceTree gives the following error:Immagine 2022-03-07 122703.png

This happens:

  • - every time SourceTree is opened
  • - every time I close the Tools -> Options window
  • - every time Tools -> Launch SSH agent... is clicked


Any idea on how to solve this?

PS: Here is my git configuration on SourceTree Options: Immagine 2022-03-07 123222.png

Update (2022-06-01): this still happens with SourceTree version 3.4.9

Update (2022-10-19): this still happens with SourceTree version 3.4.10. This is frustrating! Time to change git GUI...

Update (2023-09-28): this still happens with SourceTree version 3.4.15.

2 answers

0 votes
Gonzalo Piffaretti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Sep 28, 2023

I have the same issue. Everything works as expected when using git in bash or powershell. Sourcetree is just not playing nicely with OpenSSH.
Also evaluating a change.

I opened an issue in SourceTree for Windows Jira

If you feel like it, you can vote/comment it.

I don't have much faith that it will be considered or even corrected but at least I reported it.

this still happens with SourceTree version 3.4.10. This is frustrating! Time to change git GUI...

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events