Add ssh multiplexing options to default REMOTE_EXEC and REMOTE_COPY.

This commit is contained in:
Darko Poljak 2016-03-06 08:20:16 +01:00
parent 36d6ffbe74
commit bb43a8f47f

View file

@ -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"""