synchroniser : use -S to avoid login in

We create a master ssh connection the -S flag uses this to avoid having
to log in again.
This commit is contained in:
2026-01-23 17:29:40 +01:00
parent c7f0a67f17
commit fd825f7e87

View File

@@ -217,6 +217,7 @@ class Synchroniser:
command.append(value) command.append(value)
sshargs = f"-p {self.remote_port} " sshargs = f"-p {self.remote_port} "
sshargs += f"-S {self.control_path} "
for arg, value in self.ssh_settings.items(): for arg, value in self.ssh_settings.items():
sshargs += arg + " " + value + " " sshargs += arg + " " + value + " "
command.append("-sshargs") command.append("-sshargs")