* ssh_config [#md3c7b2f]

** Hostのワイルドカードによる指定 [#e721129d]

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

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

*** 参考 [#oe04981c]
http://unix.stackexchange.com/questions/16571/multiple-host-in-ssh-config

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