diff --git a/scripts/run_on_builder b/scripts/run_on_builder index 888a0dc5d0c..e9522f973ed 100755 --- a/scripts/run_on_builder +++ b/scripts/run_on_builder @@ -4,4 +4,4 @@ set -eu # Enter the repo root cd "$(dirname "$0")/.." -ssh -o TCPKeepAlive=no -o ServerAliveCountMax=20 -o ServerAliveInterval=30 -o StrictHostKeyChecking=no -i "$BUILDER_SPOT_KEY" ubuntu@"$BUILDER_SPOT_IP" "$@" \ No newline at end of file +ssh -o ControlMaster=auto -o ControlPath=~/.ssh_mux_%h_%p_%r -o ControlPersist=10m -o TCPKeepAlive=no -o ServerAliveCountMax=20 -o ServerAliveInterval=30 -o StrictHostKeyChecking=no -i "$BUILDER_SPOT_KEY" ubuntu@"$BUILDER_SPOT_IP" "$@" diff --git a/scripts/run_on_tester b/scripts/run_on_tester index 075a3b5cbe5..ae82e429f15 100755 --- a/scripts/run_on_tester +++ b/scripts/run_on_tester @@ -4,4 +4,4 @@ set -eu # Enter the repo root cd "$(dirname "$0")/.." -ssh -o TCPKeepAlive=no -o ServerAliveCountMax=20 -o ServerAliveInterval=30 -o StrictHostKeyChecking=no -i "$SPOT_KEY" ubuntu@"$SPOT_IP" "$@" \ No newline at end of file +ssh -o ControlMaster=auto -o ControlPath=~/.ssh_mux_%h_%p_%r -o ControlPersist=10m -o TCPKeepAlive=no -o ServerAliveCountMax=20 -o ServerAliveInterval=30 -o StrictHostKeyChecking=no -i "$SPOT_KEY" ubuntu@"$SPOT_IP" "$@"