ssh

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package ssh provides SSH server implementation for memsh, allowing remote shell access via the SSH protocol. The SSH server integrates with the memsh session store for filesystem persistence across connections.

Features:

  • Password authentication using optional API key
  • No authentication mode (if no API key configured)
  • Interactive PTY sessions with full readline support
  • Non-interactive command execution
  • Virtual filesystem persistence via session store
  • Automatic Ed25519 host key generation and persistence

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr        string
	APIKey      string
	HostKeyFile string
	Store       *session.Store
	BaseOpts    []shell.Option
	Timeout     time.Duration
}

Config holds the SSH server configuration.

type Server

type Server struct {
	*gliderssh.Server
}

Server wraps the gliderlabs SSH server.

func New

func New(cfg Config) (*Server, error)

New creates a new SSH server with the given configuration.

Jump to

Keyboard shortcuts

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