summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-02-18 10:19:06 +0530
committersinanmohd <sinan@sinanmohd.com>2024-02-18 10:19:06 +0530
commit366abef106debf22e18cbb138a0a067e39a3f212 (patch)
treee83499c1d61087b5bb5fabb337d93c0762229ee5 /hosts
parentbf12a289b2e4c8f22d1be781408a6d1273fd3b04 (diff)
hosts/lia/sshfwd/mkFwdSrv: set ExitOnForwardFailure
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 74e62da..3c7c006 100644
--- a/hosts/lia/modules/sshfwd.nix
+++ b/hosts/lia/modules/sshfwd.nix
@@ -22,6 +22,7 @@
${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 \
+ -o ExitOnForwardFailure=yes \
-i ${key}
'';