From 928d3e2b1ce1c2c93f1a2378d4c5166e81f61b30 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Thu, 11 Feb 2021 10:37:02 +1000 Subject: [PATCH] Tweak ssh settings for flakey networks / hosts --- hosts/dionach.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hosts/dionach.nix b/hosts/dionach.nix index 65a7126..2e32bd8 100644 --- a/hosts/dionach.nix +++ b/hosts/dionach.nix @@ -125,7 +125,7 @@ texlive.combined.scheme-full tmate # Instant Terminal Sharing tpm-tools - tor-browser-bundle-bin + #tor-browser-bundle-bin tree # Command to produce a depth indented directory listing udevil unrar @@ -200,6 +200,14 @@ opengl.enable = true; }; + # The below pair are set to overcome flakey connections / busy servers that + # fail to respond to ssh keep alive requests, sometimes triggering: + # client_loop: send disconnect: Broken pipe + programs.ssh.extraConfig = '' + ServerAliveInterval 20 + TCPKeepAlive no + ''; + # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you