在Windows 7机器上设置github ssh [英] setting up github ssh on windows 7 machine

查看:184
本文介绍了在Windows 7机器上设置github ssh的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 git的指导方法在我的Windows机器上安装了git。 ,但我有问题。

I just installed git on my windows machine using git's how to guide, but I am having a problem.

运行 ssh -T git@github.com 时,出现以下错误:

When I run ssh -T git@github.com step I am getting this error:


ssh_exchange_identification:读取:由同级重置的连接

ssh_exchange_identification: read: Connection reset by peer

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

here is a longer trace that I got by running 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

谢谢

推荐答案

我有同样的问题,但从未找到解决问题的方法。

I had the same problem, but never found a way to solve it.

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

The workaround was to use https instead of ssh.

这篇关于在Windows 7机器上设置github ssh的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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