sshserve

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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