sshserve

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sshserve serves the Mesh TUI over SSH, so a teammate can browse the knowledge graph by ssh-ing the host with no local install: charmbracelet/wish runs the same bubbletea TUI the `mesh tui` command does, once per session, over the same read-only index the agent uses. Auth is fail-closed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, vaultRoot string, opts Options) error

Serve runs the SSH TUI server until ctx is cancelled, then drains in-flight sessions. It fails closed: without an authorized_keys file it refuses to start unless AllowAnon is explicitly set.

Types

type Options

type Options struct {
	Addr         string // listen address, e.g. ":2222"
	HostKeyPath  string // persistent host key (generated if missing)
	AuthKeysPath string // OpenSSH authorized_keys; only these public keys may connect
	AllowAnon    bool   // explicit opt-in to NO auth (localhost/demo only)
	Logf         func(string, ...any)
}

Options configures the SSH viewer server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL