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

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

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,850 views 4 7
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