Skip to content

Commit a69dd0f

Browse files
Write tunnel known_hosts to state directory
1 parent c59b912 commit a69dd0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nixos/tunnel-service.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ PY
7878
-o ServerAliveCountMax=3 \
7979
-o ExitOnForwardFailure=yes \
8080
-o StrictHostKeyChecking=accept-new \
81+
-o UserKnownHostsFile=${stateDir}/known_hosts \
8182
-i "''${KEY_FILE:-${keyFile}}" \
8283
-R "''${REMOTE_PORT}:localhost:''${LOCAL_PORT:-5000}" \
8384
"''${SSH_USER}@''${SSH_HOST}"

0 commit comments

Comments
 (0)