sshd

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetWinsize

func SetWinsize(t pty.FdHolder, w, h uint32)

SetWinsize sets the size of the given pty.

Types

type Config

type Config struct {
	Host       string
	Port       string
	Shell      string
	KeyFile    string
	KeySeed    string
	AuthType   string
	KeepAlive  int
	IgnoreEnv  bool
	LogVerbose bool
}

Config is the configuration for the server

func NewConfig

func NewConfig(keyFile string, keySeed string) *Config

NewConfig creates a new Config

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a simple SSH Daemon

func NewServer

func NewServer(c *Config) (*Server, error)

NewServer creates a new Server

func (*Server) Start

func (s *Server) Start() error

Start listening on port

Jump to

Keyboard shortcuts

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