Stop remote SSH sessions on close and timeout

This commit is contained in:
benya
2026-06-04 16:55:06 +03:00
parent 6fc805491e
commit 9143b43637
5 changed files with 113 additions and 10 deletions

View File

@@ -329,6 +329,7 @@ Allowed command types:
- `uci_revert`
- `uci_restore`
- `remote_ssh_reverse`
- `remote_ssh_close`
Package commands are package-manager aware on the agent. OpenWrt 25.12+ uses `apk`; older releases usually use `opkg`. Legacy `opkg_*` command names are still accepted for compatibility, but the UI uses `pkg_*`.

View File

@@ -17,7 +17,7 @@ Remote access is now implemented as an MVP reverse SSH session flow. The server
3. Server queues `remote_ssh_reverse` for the router.
4. Agent runs `ssh` or `dbclient` and requests `-R remote_port:127.0.0.1:22`.
5. Operator connects to the server endpoint shown by the UI.
6. Session expires automatically or is closed by the operator.
6. Session expires automatically on the router or is closed by an operator command.
## Docker/Linux Requirement