fix: SSH隧道命令增加ServerAliveInterval心跳参数防止空闲断连

This commit is contained in:
freedakgmail
2026-07-31 13:47:10 +08:00
parent ab383006d6
commit 9d7019bdc2
2 changed files with 1 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -24,7 +24,7 @@ cd server && npm run dev
线上 Nginx 将 `/api/` 代理到远程 `127.0.0.1:13333`,通过反向 SSH 隧道转发到本地后端:
```bash
sshpass -p 'Why_701208' ssh -o StrictHostKeyChecking=accept-new -N -R 13333:localhost:3333 ubuntu@dm.all8ai.top
sshpass -p 'Why_701208' ssh -o StrictHostKeyChecking=accept-new -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -N -R 13333:localhost:3333 ubuntu@dm.all8ai.top
```
### 3. 访问