The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding multiple SSH keys generated using Open-SSH in the Source Tree

sanketcs30
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!
October 18, 2024

Hi, I have created two bitbucket accounts and created two SSH keys using Open-SSH agent, now how to add multiple private SSH keys generated into the source tree as source tree only takes only one SSH key and even after specifying proper SSH key in the SSH key configuration [Source tree ---> Options ---> SSH key configuration] , it's giving following error how to resolve the error:- 

"ssh-agent failed with code -1": SystemNullReferenceException: Object reference not set to an instance of object

Also this error is showing when I click on the launch ssh agent button [Source tree ---> Tools ---> Launch SSH Agent

What is the cause of this error and please provide the solution to resolve this error

error.PNG

Thanks

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Brant Schroeder
Community Champion
August 4, 2025

@sanketcs30 welcome to the Atlassian community

This is the only solution I have seen on this.  Take a look at this post and see if it will resolve your issue https://community.atlassian.com/forums/Sourcetree-questions/Sourcetree-support-multiple-SSH-keys/qaq-p/23635 

TAGS
AUG Leaders

Atlassian Community Events