90

複数の SSH アカウント (特に github.com) 用に .ssh/config ファイルを作成しようとしています。いくつかのチュートリアルと github ヘルプのウォークスルーを試しましたが、何も機能していないようです。

と を作成しましid_rsa_testid_rsa_test.pubid_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

助言がありますか?

4

1 に答える 1

249

Identi f yFileではなく、't' が付いた Identi t yFileです。

于 2013-04-20T05:09:44.940 に答える