]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- enable sharing of ssh sessions 1111/head
authorArvin Schnell <aschnell@suse.de>
Thu, 12 Mar 2026 12:48:43 +0000 (13:48 +0100)
committerArvin Schnell <aschnell@suse.de>
Thu, 12 Mar 2026 12:48:43 +0000 (13:48 +0100)
client/snbk/BackupConfig.cc
client/snbk/BackupConfig.h
package/snapper.changes

index ba44596d56810ac2e21e2a45a8ea86f14428272d..3cb8e1ee7334b343c97da06d529913a7b0a63edb 100644 (file)
@@ -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;
     }
 
index c3b47c1efd05743dd54bd41f833f849d484e3939..9c573aab0e3cb3cbf686f0469e258743546519c6 100644 (file)
@@ -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;
index 23cb67ea54f60ee335b4fe3e4450067af06fa848..d3dafd6b27c70a2bc72b6c5f41fb29d21271a00e 100644 (file)
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Thu Mar 12 13:48:06 CET 2026 - Arvin Schnell <aschnell@suse.com>
+
+- enable sharing of ssh sessions (gh#openSUSE/snapper#1087)
+
 -------------------------------------------------------------------
 Tue Mar 10 10:55:15 CET 2026 - aschnell@suse.com