ssh

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHostKeyFile = "~/.ssh/id_rsa"

DefaultHostKeyFile is default SSH key path

View Source
var UserConfigTypeNone = "none"

UserConfigTypeNone is constant

View Source
var UserConfigTypePublicKey = "public-key"

UserConfigTypePublicKey is constant

View Source
var UserConfigTypeUsername = "username"

UserConfigTypeUsername is constant

Functions

This section is empty.

Types

type Config

type Config struct {
	Port             uint
	Address          string
	IdleTimeout      time.Duration
	MaxTimeout       time.Duration
	ExecutableBinary string
	HostKeyFile      string
	MaxSessions      uint
	UserConfigType   string
	ColorsDir        string
}

Config is config struct

type Server

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

Server is server struct

func NewServer

func NewServer(config *Config) *Server

NewServer returns a new server instance

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the server

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown shuts down the server

Jump to

Keyboard shortcuts

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