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

Authentication failure with OpenSSH on Windows Edited

Hey everybody,

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 git@bitbucket.org, 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?

 

Best, Dirk

 

2 answers

0 votes
minnsey Atlassian Team Jun 20, 2018

Hi

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.

minnsey Atlassian Team Jun 27, 2018

Thanks for the information.

Without want to shirk any responsibility, if there is an issue in Git Bash then it is more likely to be an issue with Git for Windows itself rather than Sourcetree.

Thanks for the hint!

Keep up the good work, I prefer Sourcetree over the command line any day.

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,955 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