From de208a0832a167e1d6afb64dce6fcc47df428460 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 14 Feb 2024 15:58:03 +0530 Subject: hosts/lia/sshfwd/mkFwdSrv: set ServerAliveInterval --- hosts/lia/modules/sshfwd.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'hosts/lia/modules') diff --git a/hosts/lia/modules/sshfwd.nix b/hosts/lia/modules/sshfwd.nix index 582afc7..b6f428f 100644 --- a/hosts/lia/modules/sshfwd.nix +++ b/hosts/lia/modules/sshfwd.nix @@ -21,6 +21,7 @@ ExecStart = '' ${pkgs.openssh}/bin/ssh -N ${remote_user}@${remote} -p ${toString ssh_port} \ -R '[::]:${toString remote_port}:127.0.0.1:${toString local_port}' \ + -o ServerAliveInterval=15 \ -i ${key} ''; -- cgit v1.2.3