Add ssh multiplexing options to default REMOTE_EXEC and REMOTE_COPY.
This commit is contained in:
parent
36d6ffbe74
commit
bb43a8f47f
1 changed files with 4 additions and 2 deletions
|
@ -41,8 +41,10 @@ BANNER = """
|
|||
"P' "" ""
|
||||
"""
|
||||
|
||||
REMOTE_COPY = "scp -o User=root -q"
|
||||
REMOTE_EXEC = "ssh -o User=root -q"
|
||||
SSH_MUX_OPTS = ("-o ControlPath=~/.ssh/master-%l-%r@%h:%p"
|
||||
" -o ControlMaster=auto -o ControlPersist=125")
|
||||
REMOTE_COPY = "scp -o User=root -q " + SSH_MUX_OPTS
|
||||
REMOTE_EXEC = "ssh -o User=root -q " + SSH_MUX_OPTS
|
||||
|
||||
class Error(Exception):
|
||||
"""Base exception class for this project"""
|
||||
|
|
Loading…
Reference in a new issue