여러 SSH 계정 (특히 github.com)의 .ssh/config 파일을 만들려고합니다. 몇 가지 자습서와 github 도움을 걸어 봤지만 아무것도 작동하는 것 같습니다.Github SSH 구성
나는 id_rsa_test
과 id_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
어떤 제안?
놀라운 것! 한 가지 잊어 버린 것은 ** IdentityFile ~/.ssh/id_rsa_test.pub ** 감사합니다! ** 모두 ** ** 술집 **도 잊지 마세요. –