From e5c3674bbb279740532d41a8128b227b1c5c4fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Fri, 27 Jan 2023 16:43:30 +0100 Subject: [PATCH] change ControlMaster --- sshs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sshs b/sshs index 4050171..e18519b 100644 --- a/sshs +++ b/sshs @@ -22,7 +22,8 @@ sshs() { done fi logdebug "FILELIST1: ${FILELIST[@]}" - local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s -o ControlPath=~/.ssh/master-%C" + local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s" + #local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s -o ControlPath=~/.ssh/master-%C" #local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=yes -o ControlPersist=10s -o ControlPath=~/.ssh/ssh-%C" # Read /etc/bashrc or /etc/bash.bashrc (depending on distribution) and /etc/profile.d/*.sh first #ssh -T ${SSH_OPTS} $@ "pwd" >/dev/null 2>/dev/null || { logerror "Server $@ not reachable -> exit"; return 1; }