ssh

package
v1.6.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

DefaultHostKeyFile is default SSH key path

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
}

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