mirror of
https://github.com/anomalyco/opentui.git
synced 2026-09-19 01:26:03 +08:00
9ef4691410
## Summary Adds `@opentui/ssh`, renderer-agnostic ssh server package for serving apps to remote terminals. Highlights: - `createServer(config).use(...).serve(handler)` builder api with typed middleware context - open, public key, password, and keyboard-interactive auth, including verified public-key possession and `authorized_keys` allowlists - host key loading/generation, startup banner, logging middleware, session resize/close hooks, raw writes, idle/max timeouts, and graceful shutdown --------- Co-authored-by: opencode-agent <opencode-agent@opencode.ai> Co-authored-by: Sebastian Herrlinger <hasta84@gmail.com>
15 lines
441 B
TypeScript
15 lines
441 B
TypeScript
/**
|
|
* Example: serve a SolidJS (@opentui/solid) app over SSH.
|
|
*
|
|
* bun run packages/ssh/examples/solid.tsx
|
|
*
|
|
* ssh -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
|
|
* guest@localhost
|
|
*
|
|
* Solid JSX needs a Bun transform plugin. Register it before dynamically
|
|
* loading the JSX implementation so this example works without CLI preloads.
|
|
*/
|
|
import "@opentui/solid/preload"
|
|
|
|
await import("./solid-app.js")
|