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 connecting to already running ssh-agent

I failed to set up Sourcetree to connect to an already running ssh-agent. Is this possibly? If so, how? My Sourcetree always starts its own ssh-agent.

 

Long story: our Bitbucket Server is behing another host we connect to with SSH. Therefore we use something like the following in ~/.ssh/config:

 

Host bitbucket.company.domain

  User git

  ProxyJump sshproxy.company.domain

  IdentityFile ~/.ssh/bitbucket

 

Host sshproxy.company.domain

  User USERNAME

  IdentityFile ~/.ssh/id_rsa

 

This works really well with GNU/Linux and with Windows using OpenSSH. For key management however we use PuTTY and pageant on Windows. Git comes with a ssh-pageant.exe and a start-ssh-pageant.bat script to launch the ssh-pageant.exe which talks OpenSSH to git but fetches the keys from PuTTY's pageant.

 

This works perfectly with TortoiseGit, Git for Windows on the command line, but it fails with Sourcetree because Sourcetree insists in launching its own ssh-agent instead of using the one already running.

 

Is there a way (environment variable, configuration option, etc.) to tell Sourcetree to use OpenSSH, but NOT start an own ssh-agent, but use an already running agent?

 

TIA.

1 answer

0 votes
minnsey Atlassian Team Dec 08, 2017

Hi, 

There isn't currently, but its something we can look into. Could you create a request at https://jira.atlassian.com ?

Where exactly? Sourcetree Development? Sourcetree for Windows?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,917 views 0 12
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