ssh_config

Hostのワイルドカードによる指定

 Host x.example.com
 User foo
 IdentityFile ~/.ssh/id_rsa_for_host_x
 
 Host *
 User bar
 IdentityFile ~/.ssh/id_rsa

Hostのワイルドカードは最初にマッチする項目が採用されるので、グローバルな設定はconfigの最後に書く。

参考

http://unix.stackexchange.com/questions/16571/multiple-host-in-ssh-config


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2015-07-08 (水) 18:04:46