From 3f23c11c39af03399a48fd1da8004c5610b8ac3c Mon Sep 17 00:00:00 2001 From: Artem Bliznetsov Date: Thu, 18 Apr 2024 23:37:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=86=D0=B8=D0=B8=20SSH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helperlib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helperlib.py b/helperlib.py index b4ee4ae..48cd7ac 100644 --- a/helperlib.py +++ b/helperlib.py @@ -1,6 +1,8 @@ import os SUDO_REMOTE=True +#SSH_ARGS='-C -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=~/.ssh/controlmasters/%r@%h:%p -o PreferredAuthentications=publickey' +SSH_ARGS='' def get_config(): config_path = os.environ.get('SSH_HELPER_HOST_LIST') @@ -67,7 +69,7 @@ def add_sudo(s): return res def make_ssh_cmd(host, port, user, cmd): - res = f"/usr/bin/ssh {user}@{host} -p {port} '{cmd}'" + res = f"/usr/bin/ssh {user}@{host} {SSH_ARGS} -p {port} '{cmd}'" return res def get_connection_config(con_name):