Skip to content

Commit 1202566

Browse files
committed
Add ServerAliveInterval=30 to reverse ssh connection
1 parent 4517172 commit 1202566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvirt/tunnel/tunnel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function ssh-tunnel() {
103103
break
104104
fi
105105

106-
if ! ssh -N -T [email protected] -p ${PORT_FRWD} $@; then
106+
if ! ssh -N -o ServerAliveInterval=30 -T [email protected] -p ${PORT_FRWD} $@; then
107107
echo "$(timestamp) [WARNING] SSH tunnelling failed, retrying..."
108108
sleep 30s
109109
fi

0 commit comments

Comments
 (0)