summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-02-14 15:58:03 +0530
committersinanmohd <sinan@sinanmohd.com>2024-02-14 15:58:03 +0530
commitde208a0832a167e1d6afb64dce6fcc47df428460 (patch)
tree9f810936a1e6b86035d8618485464858f3f01f5d /hosts
parent92d993b5d3a5b38b58d24e3d04234d11a00f3e67 (diff)
hosts/lia/sshfwd/mkFwdSrv: set ServerAliveInterval
Diffstat (limited to 'hosts')
-rw-r--r--hosts/lia/modules/sshfwd.nix1
1 files changed, 1 insertions, 0 deletions
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}
'';