How do I prevent a "No supported authentication methods available" error when using TortoiseHg?
Solution 1
Clocked it. I needed to create an ssh-key pair. To do this I opened puttygen.exe and generated a key. Then I run pageant.exe and added the generated key to its list. The final stage was to log in to codebasehq and add the text of the key (from the box in puttygen labelled 'Public key for pasting...') to my profile.
Hope this helps someone.
(I'm going to accept my own answer but if someone can come up with a more concise answer I'll happily accept yours instead)
Solution 2
I just had the same error message. But in my case, the problem was an outdated Pageant version that came with TortoiseHg.
A great trick to debug the "No supported authentication methods available" error message is to add -v in mercurial.ini
\# Generated by TortoiseHg settings dialog
[ui]
username = name <[email protected]>
ssh = "TortoisePlink.exe" -ssh -2 -batch -C -v
Output:
remote: Pageant is running. Requesting keys.
remote: Failed to get reply from Pageant
remote: Using username "hg".
remote: Disconnected: No supported authentication methods available (server sent: publickey)
no suitable response from remote hg
Also see:
http://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Mercurial
http://confluence.atlassian.com/display/BITBUCKET/Troubleshooting+SSH+Issues
Solution 3
I had the same problem. I use Git Extensions on windows. My solution was a little different tough. Instead of using the ssh repo, I used the http URL.
Something Like: https://{user}@bitbucket.org/{owner}/{name}.git
Related videos on Youtube
Comments
-
jammus almost 2 years
I have an ajax call. responseText is returned using the while loop below. Everything works fine except the embedded javascript is not loaded. My solution is to build as much of the html as I can on the client side using javascript. What is the simplest way I can build this xhtml all on the client. The simplest way would be to createElement('div') and add all these elements individually. This is what I'm currently doing. But because the code below failed, I wanted to know if this is a good solution. More importantly is there a script out there that takes html and converts it to javascript, that would be ideal I'm guessing.
while ($a = mysqli_fetch_assoc($query_return)) { $date = date('M j \a\t g:i:s a', $a[time]); echo "<div class=\"Bb2b\"><img class=\"a\" src=\"p/$a[email].jpg\" alt=\"\"/><a class=\"a\" href=\"javascript:void(0)\">$a[fname] posted <script type=\"text/javascript\">v0($a[time],$time)</script></a><br/><p class=\"c\">$a[message]</p></div>"; }
-
galchen almost 13 yearsafter you created the div and added the html code, what are you doing with the div? you must insert it somewhere in the page
-
-
Eric Sokolsky almost 13 yearsPageant.exe not pagaent.exe :D
-
Admin almost 13 yearsthank you I updated my question to make a bit more sense. so one can use eval but for best practice build it out into JS objects? Is this correct? Also do you have a link on how I can use JQuery or similar to do this instead of writing fromt the ground up?
-
StriplingWarrior over 12 yearsPossibly-related bug: bitbucket.org/tortoisehg/thg/issue/1760/…
-
Some Canuck about 12 yearsThank you! I tried everything else and finally upgrading from 0.60 to 0.62 fixed it. Bless you sir.
-
Steve Johnson almost 11 yearsThank you. In my case, i installed a newer version of TortoiseGIT (which had a newer version of pageant.exe). I had to exit the older version (which was running and was part of git extensions for visual studio) and tried again! Worked like a charm. Thanks again for the tip!
-
Toskan over 10 yearsjust pointing out for those not familiar with PAGEANT.exe - after you start it, you will find a computer icon with a hat (yes, indeed) in the tray. Rightclick - add key. This solved my issues with bitbucket as well