mr/MSYS2だけはControlMaster=noにしたい
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
- どの環境でも ~/.ssh/config を統一したい
- ssh の多重化をしたい
-- だけど MSYS2(やCygwin)は ssh の多重化が出来ないので...
という人向けです
* ~/.ssh/config [#m710b778]
#prism(bash){{{
# MSYS2に特化した設定
Match Exec "uname | grep -qE '(MSYS|MINGW)'"
ControlMaster no
Match All
# 以下、共通の設定(MSYS2は先に記載した ControlMaster が...
ControlPath ~/.ssh/mux/%C
ControlMaster auto
ControlPersist 1d
}}}
* ポイント [#edc96a94]
- ssh_configは先勝ちなので、先に MSYS2 用の設定(ControlM...
- (表現が変だけど)''Match Exec hoge'' を閉じるには ''Ma...
-- あるいは ''Match Host *'' でもOK(こっちの方が見慣れて...
* 参考 [#p9d59447]
- man ssh_config
- [[SSHの多重接続について – Siguniang's Blog>https:...
- [[最強のSSH踏み台設定 - Qiita>https://qiita.com/kawaz/i...
- [[sshd_configの設定で「Match条件の終わり方」について教...
終了行:
- どの環境でも ~/.ssh/config を統一したい
- ssh の多重化をしたい
-- だけど MSYS2(やCygwin)は ssh の多重化が出来ないので...
という人向けです
* ~/.ssh/config [#m710b778]
#prism(bash){{{
# MSYS2に特化した設定
Match Exec "uname | grep -qE '(MSYS|MINGW)'"
ControlMaster no
Match All
# 以下、共通の設定(MSYS2は先に記載した ControlMaster が...
ControlPath ~/.ssh/mux/%C
ControlMaster auto
ControlPersist 1d
}}}
* ポイント [#edc96a94]
- ssh_configは先勝ちなので、先に MSYS2 用の設定(ControlM...
- (表現が変だけど)''Match Exec hoge'' を閉じるには ''Ma...
-- あるいは ''Match Host *'' でもOK(こっちの方が見慣れて...
* 参考 [#p9d59447]
- man ssh_config
- [[SSHの多重接続について – Siguniang's Blog>https:...
- [[最強のSSH踏み台設定 - Qiita>https://qiita.com/kawaz/i...
- [[sshd_configの設定で「Match条件の終わり方」について教...
ページ名: