feat(riot): -o ServerAliveInterval=60

This commit is contained in:
Dict Xiong 2025-12-19 21:23:47 +08:00
parent c86cc85e24
commit bdef3b52d1

View File

@ -93,7 +93,7 @@ parse_remote() {
TRUST_SERVER=1 TRUST_SERVER=1
PORT="" # optional PORT="" # optional
USERNAME="" # optional USERNAME="" # optional
SSH_OPTIONS=("-o" "RequestTTY=yes") SSH_OPTIONS=("-o" "RequestTTY=yes" "-o" "ServerAliveInterval=60")
if [[ "$RIOT_TRUST_CLIENT" == "1" ]]; then if [[ "$RIOT_TRUST_CLIENT" == "1" ]]; then
SSH_OPTIONS+=("-o" "PermitLocalCommand=yes") SSH_OPTIONS+=("-o" "PermitLocalCommand=yes")
if [[ "$(get_os_type)" != "msys" ]]; then if [[ "$(get_os_type)" != "msys" ]]; then