git - 在 Windows 7 机器上设置 github ssh

标签 git ssh github

我刚刚使用 git's how to guide 在我的 Windows 机器上安装了 git ,但我遇到了问题。

当我运行 ssh -T git@github.com 步骤时,我收到了这个错误:

ssh_exchange_identification: read: Connection reset by peer

这是我通过运行 ssh -vvv git@github.com 得到的更长的跟踪:

OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /c/Users/bmehanni/.ssh/identity type -1
debug3: Not a RSA1 key file /c/Users/bmehanni/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /c/Users/bmehanni/.ssh/id_rsa type 1
debug1: identity file /c/Users/bmehanni/.ssh/id_dsa type -1
ssh_exchange_identification: read: Connection reset by peer

谢谢

最佳答案

我遇到了同样的问题,但一直找不到解决的方法。

解决方法是使用 https 而不是 ssh。

关于git - 在 Windows 7 机器上设置 github ssh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8480219/

相关文章:

linux - 猫换主人了?

github - 如何在 GitHub 问题中引用文件?

git - origin 似乎不是 git 存储库

r - Git 推送失败 (Github/RStudio)

linux - 远程bash脚本执行

docker - 从一个容器到另一个容器的SSH

json - 从 github 安装 NPM 依赖项

使用 oauth token 进行身份验证的 Git/github 命令行应用程序?

混帐致命 : failed to read object xxx: Invalid argument

git - 使用 git tfs merge 两个 TFS 分支