开发者

Problem connecting to GitHub on Windows, even via PuTTY

开发者 https://www.devze.com 2023-02-02 06:20 出处:网络
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 githu

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/

  1. You DO want to use plink for ssh when you’re installing msysgit.
  2. Putty’s public key that you have saved isn’t in the right format for pasting into github.
  3. fire up puttygen again, but choose to LOAD AN EXISTING KEY
  4. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消