UFO ET IT

Github SSH 구성

ufoet 2021. 1. 5. 08:25
반응형

Github SSH 구성


여러 SSH 계정 (특히 github.com의 경우)에 대해 .ssh / config 파일을 만들려고합니다. 여러 자습서와 github 도움말 안내를 시도했지만 아무것도 작동하지 않는 것 같습니다.

내가 만들어 id_rsa_testid_rsa_test.pub. id_rsa_test.pubgithub에 업로드 했습니다.

그런 ~/.ssh/config다음 다음과 같은 파일 을 만들었습니다 .

# 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

그런 다음 몇 가지 명령을 시도합니다. 즉 :

git clone git@github-test: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

어떤 제안?


't'가있는 IdentityFile이며, IdentifieFile이 아닙니다.

참조 URL : https://stackoverflow.com/questions/16116788/github-ssh-config

반응형