From 772d403cdaf0f4e8814b7d0de447dcfcd1a01148 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 9 Mar 2015 12:56:39 +0100 Subject: common: Use 60s ServerAliveInterval for OpenSSH. Especially while being in an environment with unstable connectivity, it helps a lot to prevent SSH sessions from being dropped. Signed-off-by: aszlig --- common.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common.nix') diff --git a/common.nix b/common.nix index baa65336..111b5c6c 100644 --- a/common.nix +++ b/common.nix @@ -27,7 +27,11 @@ networking.useNetworkd = true; i18n.consoleKeyMap = "dvorak"; + programs.ssh.startAgent = false; + programs.ssh.extraConfig = '' + ServerAliveInterval 60 + ''; services.nixosManual.showManual = false; -- cgit 1.4.1