fix: SSH隧道命令增加ServerAliveInterval心跳参数防止空闲断连
This commit is contained in:
Binary file not shown.
@@ -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. 访问
|
||||
|
||||
Reference in New Issue
Block a user