From 26b623eef74ebc501a34af9ad9550f392df7605a Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Sat, 18 Apr 2026 13:31:14 -0700 Subject: [PATCH] configure ClientAliveInterval/CountMax in setup-hub.sh --- hub/setup-hub.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/setup-hub.sh b/hub/setup-hub.sh index 94c03d2..5a74e26 100755 --- a/hub/setup-hub.sh +++ b/hub/setup-hub.sh @@ -151,7 +151,7 @@ header "SSH Server Configuration" SSHD_CONF="/etc/ssh/sshd_config" [ -f "$SSHD_CONF" ] || die "sshd_config not found at $SSHD_CONF" -for DIRECTIVE in "GatewayPorts yes" "AllowTcpForwarding yes"; do +for DIRECTIVE in "GatewayPorts yes" "AllowTcpForwarding yes" "ClientAliveInterval 60" "ClientAliveCountMax 3"; do KEY="${DIRECTIVE%% *}" if grep -q "^$KEY" "$SSHD_CONF"; then sed -i "s/^$KEY.*/$DIRECTIVE/" "$SSHD_CONF" @@ -253,7 +253,7 @@ info "Mount point created at $MOUNT_POINT." header "Hub Setup Complete" echo -e " Hub user: ${GREEN}$HUB_USER${NC}" -echo -e " SSH config: ${GREEN}GatewayPorts yes, AllowTcpForwarding yes${NC}" +echo -e " SSH config: ${GREEN}GatewayPorts yes, AllowTcpForwarding yes, ClientAliveInterval 60${NC}" echo -e " FUSE: ${GREEN}user_allow_other enabled${NC}" echo -e " rclone config: ${GREEN}$RCLONE_CONF${NC}" echo -e " Mount point: ${GREEN}$MOUNT_POINT${NC}"