commit af369a57a4973bb51c42756d42ba09531b415b01
parent d81e3fcfc8e95b511976ddad8ee2ed4f34af9c83
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 21 Aug 2020 14:38:39 +0200
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>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/users/vincent/core/ssh.nix b/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
'';
};
}