Github SSH配置

Github SSH配置,github,ssh,config,Github,Ssh,Config,我正在尝试为多个ssh帐户(特别是github.com)创建一个.ssh/config文件。我尝试了一些教程和github帮助演练,但似乎没有任何效果 我创建了一个id\u rsa\u test和id\u rsa\u test.pub。我上传了id\u rsa\u test.pub到github 然后,我创建了一个~/.ssh/config文件,其中包含以下内容: # github account Host github.com-test github.com Hostname gith

我正在尝试为多个ssh帐户(特别是github.com)创建一个.ssh/config文件。我尝试了一些教程和github帮助演练,但似乎没有任何效果

我创建了一个
id\u rsa\u test
id\u rsa\u test.pub
。我上传了
id\u rsa\u test.pub
到github

然后,我创建了一个
~/.ssh/config
文件,其中包含以下内容:

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

然后我尝试了几个命令。i、 e:

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”的Identity文件,而不是Identify文件。

哇……漫长的一周,你开始犯愚蠢的错误。非常感谢。哇,我可能会笑这个答案。。然而,我也犯了同样的错误:/LOL。。。我在同一个问题上纠缠不休:双关语可信。。。同样的错误。。。我想知道为什么每个人都读identification而不是Identity:oSame错误在这里。。。有趣的是,每个人都在做同样的事情:你太棒了!我忘了一件事就是IdentityFile~/.ssh/id\u rsa\u test.pub谢谢!大家也别忘了酒吧。
/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