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

SSH not working on SourceTree?

Tom Williamson Jun 16, 2013

I have set up SourceTree to use SSH but it does not appear to be working.
Whenever I try to do a fetch from our remote repository, I get prompted for a username and password.
When I enter the correct username and password, this is what I get (in the space marked XXXX, SourceTree puts my ACTUAL PASSWORD):

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch --prune origin
Access denied
Access denied
Access denied
Access denied
FATAL ERROR: Server sent disconnect message
type 2 (protocol error):
"Too many authentication failures for XXXXXXXX"
fatal: The remote end hung up unexpectedly
Completed with errors, see above.

So not only does the SSH auth not work, I can't even use username/password auth. Does anybody have any ideas?

5 answers

1 accepted

13 votes
Answer accepted
Tom Williamson Jun 19, 2013

I was able to fix the problem by changing from "Putty/Plink" SSH to "OpenSSH" for the SSH provider. No idea why this helped, but it works now.

Noc Psn Feb 15, 2018

I had this problem for days and spent many hours on it.... And this solved it!!!! Do this!

 

Thanks

swapnil manjrekar Oct 16, 2018

Thanks, i also had the same problem for days and today with your guidance i was able to fix it!

2 votes
Tobias Hopp I'm New Here Feb 27, 2019

Wooooow, this answer is priceless.

It still does the job in 2019. Awesome and thank you!

God, this issue cost me around 3 days to find out.

 

This one worked for me as well. Thank you!

SSH-Bug.png

0 votes

Hi Tom,

This is very unusual behaviour. The error you're seeing which is showing your password is output from Git itself. Could you tell me more about your SSH setup? You've set up your id_rsa and id_rsa.pub keys in ~/.ssh/ and the URL for that repository has an SSH URL format? It looks like to me it's prompting for auth because it can't find any which could mean a number of things.

With further information we'll gladly be able to help.

Cheers

0 votes
Bitt Sitt Sep 25, 2013

I see the same problem when trying to use putty without keys (only username and password).

Steve Streeting Sep 25, 2013

Please try with today's release (1.2.3), a couple of refinements have been added for URLs which don't include the user name and manual login is used.

0 votes
Bitt Sitt Sep 26, 2013

Works now, thanks!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
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...

466 views 0 9
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