Fix ssh connection multiplexing race condition #542
Increase ControlPersist to 2h. After host run run ssh mux master exit command. If custom remote exec/copy is specified then do nothing.
This commit is contained in:
parent
1582661da9
commit
9c914308f6
3 changed files with 35 additions and 6 deletions
|
|
@ -36,7 +36,7 @@ def inspect_ssh_mux_opts():
|
|||
wanted_mux_opts = {
|
||||
"ControlPath": "{}",
|
||||
"ControlMaster": "auto",
|
||||
"ControlPersist": "10",
|
||||
"ControlPersist": "2h",
|
||||
}
|
||||
mux_opts = " ".join([" -o {}={}".format(
|
||||
x, wanted_mux_opts[x]) for x in wanted_mux_opts])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue