[git] git+sshでデフォルト(id_rsa)以外のキーファイルを指定する

git+sshでデフォルト(id_rsa)以外のキーファイルを指定したい場合 - yukke.org Diary

~/.ssh/configでgitで使用するHOSTを登録してIdentityFileを指定すればよい。

~/.ssh/config
Host Foo
    HostName example.com
    User foo
    IndentityFIle ~/.ssh/id_other
$ git remote add origin user@Foo:/your/repository.git

トラックバック(0)

このブログ記事を参照しているブログ一覧: git+sshでデフォルト(id_rsa)以外のキーファイルを指定する

このブログ記事に対するトラックバックURL: http://www.pistolfly.jp/mt/mt-tb-alt.cgi/1026

コメントする