.ssh/configの書式
ssh、git、rsyncはデフォルトで秘密鍵を取得するために、~/.ssh/id_rsaなどを走査するが、明示的に指定することが出来る。
# ホスト名 - sshコマンド引数におけるエイリアス(別名)になる Host hoge # リモートユーザ名 User git # sshポート番号 Port 2222 # リモートのホスト名またはIPアドレス HostName hoge.com # IdentitiFileを利用する場合 IdentitiesOnly yes # ローカルの秘密鍵パス IdentityFile ~/.ssh/id_rsa # sshの持続的接続 TCPKeepAlive yes