Wish is a Go SSH server library with composable middleware for SSH apps. It builds on gliderlabs/ssh and includes helpers for Bubble Tea TUIs, git hosting, and logging.
Overview
Wish helps developers build custom SSH applications with sensible defaults and middleware similar to HTTP frameworks. SSH provides encrypted access, SSH key user identification, and terminal access without HTTPS certificate management.
Built on gliderlabs/ssh, Wish middlewares chain around SSH handlers. The Bubble Tea middleware serves Bubble Tea programs over SSH with per-session tea.Program instances wired to the SSH pty. The git middleware adds git server behavior with repo creation on first push and public-key auth, requiring git on the host. A logging middleware records remote address, command, TERM, and window size.
A live middleware demo is available at ssh git.charm.sh. An upgrade guide is available for v1 users.
Key features
- Composable SSH middleware
- Bubble Tea over SSH sessions
- Git server middleware
- Connection logging middleware
- Built on gliderlabs/ssh
- Custom SSH servers in Go
- PTY-aware TUI hosting
- Public-key authentication hooks
Use cases
- Serving TUIs over SSH
- Running a git server via SSH
- Building bespoke SSH utilities
- Logging remote SSH commands