I know there's already discussion of this problem in various places (in and out of Stack Overflow), but I haven't found a solution that works consistently. Right now, I'm trying to connect to github via putty.
I'm connecting to github.com, loading my private key, and getting a
login as:
prompt. When I hit enter, I get the usual "Disconnected: No supported authentication methods available" error message. I am passing along the correct private key! (I've tested this key from another computer and it works). I've tried with and without pageant (and made sure the key is loaded there). How do you recommend I proceed?
Edit - The problems I'm experiencing pushing to github seem to manifest themselves in one of my repos开发者_如何学Citories, but not the other. How can I check or fix the damaged repository? (It doesn't appear damaged in any other way, I just can't push anything from it). Both use the same key.
This was the answer for me:
http://false.ekta.is/2010/05/putty-pageant-git-and-github-key-problems/
- You DO want to use plink for ssh when you’re installing msysgit.
- Putty’s public key that you have saved isn’t in the right format for pasting into github.
- fire up puttygen again, but choose to LOAD AN EXISTING KEY
- copy and paste from there into github.
Do not try things like opening up your saved public key, removing the comment lines, and adding ssh-rsa
to the front or things like that. It won’t work.
Well, this doesn't really answer my original question (Connecting with PuTTY), but I did find out what the problem with the repository was.
I was using an HTTPS URL for the repo. When I switched to URLs like "git@github.com:ripper234/Basic.git", it worked flawlessly.
If you are running on windows then skip the keys ssh keys altogether.
Use the github plugin found at: windows.github.com
Install the plugin (top right "download") When it's installed you just need to login. Then when ever you need to clone simply click on the "clone to windows" button found in the github webpages.
精彩评论