2011-12-12 2 views
3

git's how to guide을 사용하는 Windows 컴퓨터에 git를 설치했지만 문제가 있습니다.Windows 7 머신에서 github ssh 설정

여기

ssh_exchange_identification: read: Connection reset by peer

는 더 이상 내가 ssh -vvv [email protected]을 실행하여 가지고 추적이다 : 나는이 오류가 무엇입니까 ssh -T [email protected] 단계 실행하면

 
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 

덕분에이처럼

+0

이것은 아마도 SO 대신 serverfault로 이동해야합니다. – Bot

답변

2

동일한 문제가 있었지만 해결 방법을 찾지 못했습니다.

해결 방법은 ssh 대신 https를 사용하는 것입니다. 그것은 당신의 id_rsa_gsg_keypair를 키의 유형처럼 보인다

0

같습니다 ssh 키에 문제가있어서 ssh-keygen을 실행하는 동안 문제가 발생했다고 생각합니다. 해당 단계를 다시 실행하십시오.

+0

그래, 다시 단계를 시도해보십시오. 프록시를 받고 있습니까? – Haacked

+1

나는 내가 대리인이라고 믿지 않는다. id_rsa.pub를 재생성하려고했지만 같은 오류가 다시 발생합니다. 설정 파일이나 known_hosts 파일이 필요하지 않습니다. –

2

잘못

debug2: key_type_from_name: unknown key type 

SSH 키 파일 이름에서 유형을 추론하려고합니다. 키를 생성 할 때 -t rsa 플래그로 유형을 지정해야합니다. 또한

ssh-keygen -t rsa 

, 개인 id_rsa 키의 파일 이름에 대한 기본값을 공개 그렇지 않으면 당신은 특정에 사용하는 개인 키를 지정 ~/.ssh/config 파일에 github에 대한 구성을 추가해야합니다, id_rsa.pub 키 숙주.

Host github.com 
    HostName github.com 
    User git 
    IdentityFile C:/Users/youruser/.ssh/someotherkeyname 
+0

그게 github가 가이드에서 지정하지만 아무 쓸모가 없기 때문에 제가 시도한 것입니다. 지금은 ssh 대신 https로 전환했습니다. –

+0

나를 위해 작동하지 않았다 (Win 7) –

+0

@ManuelM. 'ssh-add/path/to/key'를 사용하여 인증 에이전트에 키를 추가 할 수 있습니까? – mbenegas

관련 문제