From 8ce27b32d554852a081220bb34ad8a140079a2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 8 Jan 2019 13:32:44 +0100 Subject: [PATCH] do not try disabling ssh connection sharing Whatever the command line options connection sharing configured in ~/.ssh/config stays somehow active, and cause errors. Ansible has custom code to detect the situation and automatically restart a SSH connection (see AnsibleControlPersistBrokenPipeError usage in lib/ansible/plugins/connection/ssh.py, also relevant is bug#16731). The only reliable fix is thus to change ~/.ssh/config to limit connection sharing to apply to some hosts only. --- eoptasks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eoptasks.py b/eoptasks.py index 94be214..4ec59a7 100755 --- a/eoptasks.py +++ b/eoptasks.py @@ -220,8 +220,7 @@ def command_window(args): orig_cmd = cmd while True: # -t: force a tty for interactive commands. - # -S none: disable connection sharing as it proved unreliable. - rc = subprocess.call(['ssh', '-t', '-o', 'ControlMaster=no', '-S', 'none', args.command_server_name] + [cmd]) + rc = subprocess.call(['ssh', '-t', args.command_server_name] + [cmd]) if rc == 0: send_status_message(tmux_session_name, {'@type': 'server-result',