Every time I close the Settings page, I get the following error:
'ssh-agent' failed with code -1:
System.NullReferenceException: Object reference not set to an instance of an object. 0
Pretty sure that's because I use the native built-in windows SSH Agent.
Hi @David
You are right that it comes from the SSH agent handling. This is a known Sourcetree for Windows bug. With Tools > Options > General > SSH Client set to OpenSSH, Sourcetree still tries to spawn and query its own ssh-agent on top of the native Windows OpenSSH Authentication Agent, and it throws that null reference when it cannot get a valid handle back. It is tracked as SRCTREEWIN-8375.
The reassuring part is that it is usually cosmetic. Your clone, fetch, and push through the Windows agent keep working; the message just fires every time you close settings or start the app.
If you do not specifically need OpenSSH, I would switch the SSH Client to PuTTY / Plink. That path does not trigger the error and has been the recommended client on Windows for a long time.
Cheers, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.