Skip to content

Commit 8716c60

Browse files
committed
✨ add ServerAliveInterval 15 to client
1 parent 5d0b467 commit 8716c60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/autossh.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22
set -e
33

4-
echo ssh -v -N -o ExitOnForwardFailure=yes -R $REMOTE_PORT:$DEST_HOST:$DEST_PORT $SSH_USER@$SSH_HOST -p$SSH_PORT
5-
autossh -M 0 -v -N -o ExitOnForwardFailure=yes -R $REMOTE_PORT:$DEST_HOST:$DEST_PORT $SSH_USER@$SSH_HOST -p$SSH_PORT
4+
echo ssh -v -N -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -R $REMOTE_PORT:$DEST_HOST:$DEST_PORT $SSH_USER@$SSH_HOST -p$SSH_PORT
5+
autossh -M 0 -v -N -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -R $REMOTE_PORT:$DEST_HOST:$DEST_PORT $SSH_USER@$SSH_HOST -p$SSH_PORT

0 commit comments

Comments
 (0)