複数の SSH アカウント (特に github.com) 用に .ssh/config ファイルを作成しようとしています。いくつかのチュートリアルと github ヘルプのウォークスルーを試しましたが、何も機能していないようです。
と を作成しましid_rsa_test
たid_rsa_test.pub
。id_rsa_test.pub
githubにアップロードしました。
~/.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
助言がありますか?