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

Vittorio Sozzi March 7, 2022

Hi, I have the latest SourceTree for Windows (version 3.4.8) and using Git standalone version 2.35.1.windows.2. 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!
September 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.

Vittorio Sozzi September 28, 2023

I opened an issue in SourceTree for Windows Jira https://jira.atlassian.com/browse/SRCTREEWIN-14297

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.

0 votes
Vittorio Sozzi October 19, 2022

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
TAGS
AUG Leaders

Atlassian Community Events