ssh

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package ssh provides SSH server implementation for memsh.

Index

Constants

This section is empty.

Variables

View Source
var ErrServerClosed = gliderssh.ErrServerClosed

ErrServerClosed is returned by ListenAndServe after Close.

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
	MinTimeout  time.Duration
	Limits      session.Limits
}

Config holds SSH server configuration.

type Server

type Server struct {
	*gliderssh.Server
}

Server wraps a 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