Default ssh mux options fixes.

This commit is contained in:
Darko Poljak 2016-03-10 20:40:37 +01:00
parent 215e58eb38
commit b4ac23b4f8

View file

@ -22,6 +22,8 @@
#
def inspect_ssh_mux_opts():
import subprocess
"""Inspect whether or not ssh supports multiplexing options"""
wanted_mux_opts = {
"ControlPath":"~/.ssh/master-%l-%r@%h:%p",
@ -38,7 +40,7 @@ def inspect_ssh_mux_opts():
for x in check:
try:
subprocess.check_output("ssh -o {}".format(x),
stderr=subprocess.STDOUT)
stderr=subprocess.STDOUT, shell=True)
except subprocess.CalledProcessError as e:
foo = e.output.decode().lower()
if not "bad configuration option" in foo: