Set ServerAliveInterval to ping SSH server every 30 seconds

Otherwise connection may be dropped if there is no output for some time.
This commit is contained in:
link2xt
2021-05-23 13:10:24 +03:00
parent 03520fbd4b
commit 15660f2741

View File

@@ -29,7 +29,7 @@ set +x
for arch in "" "-arm64"; do
ssh $SSHTARGET bash -c "cat >${BUILDDIR}${arch}/exec_docker_run" <<_HERE
ssh -o ServerAliveInterval=30 $SSHTARGET bash -c "cat >${BUILDDIR}${arch}/exec_docker_run" <<_HERE
set +x -e
shopt -s huponexit
cd ${BUILDDIR}${arch}