diff options
Diffstat (limited to 'hm/ssh')
-rw-r--r-- | hm/ssh/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/hm/ssh/default.nix b/hm/ssh/default.nix index c7b8e20..d123a6a 100644 --- a/hm/ssh/default.nix +++ b/hm/ssh/default.nix @@ -1,8 +1,9 @@ {...}: { - services.ssh-agent.enable = false; + services.ssh-agent.enable = true; programs.ssh = { enable = true; + enableDefaultConfig = false; matchBlocks = let genBox = user: { inherit user; @@ -10,6 +11,18 @@ }; username = "u384702"; in { + "*" = { + forwardAgent = false; + addKeysToAgent = "no"; + compression = false; + serverAliveInterval = 0; + serverAliveCountMax = 3; + hashKnownHosts = false; + userKnownHostsFile = "~/.ssh/known_hosts"; + controlMaster = "no"; + controlPath = "~/.ssh/master-%r@%n:%p"; + controlPersist = "no"; + }; "storagebox" = genBox username; "storagebox-1" = genBox "${username}-sub1"; }; |