2013-04-20 5 views
36

여러 SSH 계정 (특히 github.com)의 .ssh/config 파일을 만들려고합니다. 몇 가지 자습서와 github 도움을 걸어 봤지만 아무것도 작동하는 것 같습니다.Github SSH 구성

나는 id_rsa_testid_rsa_test.pub을 만들었습니다. id_rsa_test.pub을 github에 업로드했습니다.

# github account 
Host github.com-test github.com 
    Hostname github.com 
    User git 
    IdentifyFile ~/.ssh/id_rsa_test 

# github account 
Host github.com-test github.com 
    Hostname github.com 
    User git 
    IdentifyFile ~/.ssh/id_rsa_test.pub 

나는 다음 몇 가지 명령을 시도해보십시오

나는 다음과 ~/.ssh/config 파일을 만들었습니다. 즉 :

git clone [email protected]:username/my_project.git 

git push 

... 때마다 나는 다음과 같은 오류 얻을 :

/home/username/.ssh/config: line 5: Bad configuration option: IdentifyFile 
/home/username/.ssh/config: terminating, 1 bad configuration options 
fatal: The remote end hung up unexpectedly 

어떤 제안?

+0

놀라운 것! 한 가지 잊어 버린 것은 ** IdentityFile ~/.ssh/id_rsa_test.pub ** 감사합니다! ** 모두 ** ** 술집 **도 잊지 마세요. –

답변

100

IdentifyFile이 아닌 't'가있는 IdentityFile입니다.

+2

와우 ... 긴 주간에 바보 같은 실수를하기 시작합니다. 고맙습니다! – Rico

+16

그리고 당신은 Google – juanpastas

+9

와우로 유명합니다. 나는이 대답에 웃어 줄 것입니다. 그러나, 그냥 실수를 한 것 같습니다 :/ – CodeGodie