Commit af369a57a497

Vincent Demeester <vincent@sbr.pm>
2020-08-21 14:38:39
users/vincent: add more control on ssh…
Using controlMaster and controlPersist by default to reuse connections. … and add StreamLocalBindUnlink too Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent d81e3fc
Changed files (1)
users
vincent
users/vincent/core/ssh.nix
@@ -19,6 +19,8 @@ in
     serverAliveInterval = 60;
     hashKnownHosts = true;
     userKnownHostsFile = "${config.xdg.configHome}/ssh/known_hosts";
+    controlMaster = "auto";
+    controlPersist = "10m";
     controlPath = "${config.home.homeDirectory}/.ssh/sockets/%u-%l-%r@%h:%p";
     matchBlocks = {
       "github.com" = {
@@ -59,6 +61,7 @@ in
       PreferredAuthentications gssapi-with-mic,publickey,password
       GSSAPIAuthentication yes
       GSSAPIDelegateCredentials yes
+      StreamLocalBindUnlink yes
     '';
   };
 }