From: Arvin Schnell Date: Thu, 12 Mar 2026 12:48:43 +0000 (+0100) Subject: - enable sharing of ssh sessions X-Git-Tag: v0.13.1~21^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=39584eb7347ce88bc06d566d1c42d68cfa06e98f;p=thirdparty%2Fsnapper.git - enable sharing of ssh sessions --- diff --git a/client/snbk/BackupConfig.cc b/client/snbk/BackupConfig.cc index ba44596d..3cb8e1ee 100644 --- a/client/snbk/BackupConfig.cc +++ b/client/snbk/BackupConfig.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) [2024-2025] SUSE LLC + * Copyright (c) [2024-2026] SUSE LLC * * All Rights Reserved. * @@ -117,6 +117,10 @@ namespace snapper if (!ssh_identity.empty()) options.insert(options.end(), { "-i", ssh_identity }); + if (ssh_master_control) + options.insert(options.end(), { "-o", "ControlMaster=auto", "-o", "ControlPath=\"~/.ssh/snbk-%C\"", + "-o", "ControlPersist=30s" }); + return options; } diff --git a/client/snbk/BackupConfig.h b/client/snbk/BackupConfig.h index c3b47c1e..9c573aab 100644 --- a/client/snbk/BackupConfig.h +++ b/client/snbk/BackupConfig.h @@ -1,5 +1,5 @@ /* - * Copyright (c) [2024-2025] SUSE LLC + * Copyright (c) [2024-2026] SUSE LLC * * All Rights Reserved. * @@ -65,6 +65,7 @@ namespace snapper unsigned int ssh_port = 0; string ssh_user; string ssh_identity; + bool ssh_master_control = true; Shell get_source_shell() const; Shell get_target_shell() const; diff --git a/package/snapper.changes b/package/snapper.changes index 23cb67ea..d3dafd6b 100644 --- a/package/snapper.changes +++ b/package/snapper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 12 13:48:06 CET 2026 - Arvin Schnell + +- enable sharing of ssh sessions (gh#openSUSE/snapper#1087) + ------------------------------------------------------------------- Tue Mar 10 10:55:15 CET 2026 - aschnell@suse.com