Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to configure Sourcetree to use Windows SSH

I'm using Sourcetree with system Git on windows with the windows OpenSSL feature enabled. I've created a ssh key successfully in the command prompt and added it to git. The commandline remembers my SSH passprhase and I can successfully clone a repository with SSH.

Now, when I run sourcetree it asks for the SSH passphrase, regardless of the ssh config in my global .gitconfig, which sourcetree should about I'm guessing.
My SSH client in sourcetree is set to OpenSSH and I have no SSH Key configured there.
My guess is that sourcetree is still trying to use the ssh in git as it tries to lauch the ssh agent (peagant) which aks for my passprase. Running git from the commandline never asks my passphrase as the Windows Credentials manager knows it and automatically enters it AFIK.

What do I need to change in sourcetree config to get this working?

I've got ` sshCommand = "C:/Windows/System32/OpenSSH/ssh.exe"` in the `.gitconfig` `[core]`-section.

Sourcetree 2.6.10.0

Microsoft Windows [Version 10.0.17134.285

Git 2.19.0

1 answer

I'm pretty sure sourcetree is still trying to use the Git SSH from my system git installation and that's the reason why it asks for the SSH passphrase all the time.

That means Sourcetree completely ignores the sshCommand entry in my global gitconfig. When I replace the ssh.exe and other ssh executables in the system Git folder with thosse of the Windows OpenSSL feature and start sourcetree again it doesn't complain about the SSH passphrase and I can push and pull successfully with SSH.

Based on this I'm pretty sure the problem is that Sourcetree ignores (part) of the global gitconfig and provides no method of specifying the sshCommand to use.

Suggest an answer

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,378 views 4 5
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