在Windows上连接到GitHub的问题,即使通过PuTTY [英] Problem connecting to GitHub on Windows, even via PuTTY

查看:113
本文介绍了在Windows上连接到GitHub的问题,即使通过PuTTY的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在不同的地方已经讨论过这个问题(Stack Overflow中和之外),但是我还没有找到一致的解决方案。现在,我试图通过腻子连接到github。

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.

我连接到github.com,加载我的私钥,并获得一个

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 repositories, 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.

推荐答案

好吧,这并不真正回答我的原始问题(连接PuTTY)确实发现了存储库的问题。

Well, this doesn't really answer my original question (Connecting with PuTTY), but I did find out what the problem with the repository was.

我为回购使用HTTPS URL。当我切换到诸如git@github.com:ripper234 / Basic.git之类的URL时,它完美无瑕。

I was using an HTTPS URL for the repo. When I switched to URLs like "git@github.com:ripper234/Basic.git", it worked flawlessly.

这篇关于在Windows上连接到GitHub的问题,即使通过PuTTY的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆