about summary refs log tree commit diff
path: root/modules/openssh.nix
diff options
context:
space:
mode:
authorazahi <azat@bahawi.net>2025-02-05 17:18:02 +0300
committerazahi <azat@bahawi.net>2025-02-05 17:18:02 +0300
commitec25e095a26ad1e4823887a6653132948ebc5f87 (patch)
treef3d9e02f13515e7c63bc716dc39e193924589bc8 /modules/openssh.nix
parent2025-02-02 (diff)
2025-02-05
Diffstat (limited to 'modules/openssh.nix')
-rw-r--r--modules/openssh.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/openssh.nix b/modules/openssh.nix
index a41f0d6..d850322 100644
--- a/modules/openssh.nix
+++ b/modules/openssh.nix
@@ -37,6 +37,7 @@ in
 
           controlMaster = "auto";
           controlPersist = "24H";
+          controlPath = "~/.ssh/control/%r@%n:%p"; # The directory must exist.
 
           serverAliveCountMax = 30;
           serverAliveInterval = 60;

Consider giving Nix/NixOS a try! <3