I have been using SourceTree on Windows for some time now without thinking much about it (good thing!). With the latest update SourceTree suggested that I should update the embedded git I have been using. After doing so SSH access to my repositories does no longer work.
I have been using OpenSSH and I assume the following should work:
- [cmd] generate a key pair with ssh-keygen
- add the public key on the web site
- [cmd] test config with ssh -T email@example.com, running this tells me things work fine
- add the private key in SourceTree so that it shows up under Tools/Options/General
I noticed that the git-bash I can start from SourceTree does not produce any output for ssh commands. This made me run the key generation and test from the Windows command shell. This also means that ssh-add -l is not helpful for me (ssh-add -l >>foo.txt 2>&1 produces an empty file).
Why do I not see anything when using ssh commands in the git-bash?
I would expect SSH access to work when [cmd] ssh -T ... tells me things are fine. Instead I get "fatal: Could not read from remote repository" on cloning in bash. Where do I go wrong?
I'm guessing you have openSSH selected as the SSH Client in the Tools/Options/General tab.
Do you have Automatically start SSH agent... checkbox checked and if so can you see openSSH starting up when you start Sourcetree?
Is ssh-agent running in Task Manager.
To be honest I use PuTTY/Pagaent more often than openSSH and find it more reliable.
Yep, I was running openSSH. Things were fine (for more than a year) until I upgraded the embedded git to 2.17.1 (as suggested by the orange flag). Now I am also running on PuTTY/Pagaent.
Nonetheless, I wonder whether I went wrong somewhere or whether this is a bug. SSH commands not giving any output in the git-bash smells buggy to me.
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...
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