ssh

package module
v0.0.0-...-b57c09d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v0.0.0"

Variables

View Source
var (
	ContextKeyUserData = &contextKey{"user-data"}
)
View Source
var ErrServerClosed = ssh.ErrServerClosed

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr        string        // TCP address to listen on, ":22" if empty
	Version     string        // server version to be sent before the initial handshake
	IdleTimeout time.Duration // connection timeout when no activity, none if empty
	MaxTimeout  time.Duration // absolute connection timeout, none if empty

	PasswordAuthentication          bool // Allow password authentication
	ChallengeResponseAuthentication bool // Allow challenge-response authentication

	Logger *log.Logger
	Config config.Config
	// contains filtered or unexported fields
}

func NewServer

func NewServer(address string, keys string) (*Server, error)

func (*Server) AddHostKey

func (srv *Server) AddHostKey(hk crypto.Signer)

HostKeys

func (*Server) AddHostKeyFile

func (srv *Server) AddHostKeyFile(fn string) error

func (*Server) AddHostKeyFiles

func (srv *Server) AddHostKeyFiles(dir string) error

func (*Server) Error

func (srv *Server) Error(ctx interface{}, args ...interface{})

func (*Server) Errorf

func (srv *Server) Errorf(ctx interface{}, s string, args ...interface{})

func (*Server) Errorln

func (srv *Server) Errorln(ctx interface{}, args ...interface{})

func (*Server) Printf

func (srv *Server) Printf(ctx interface{}, s string, args ...interface{})

func (*Server) Println

func (srv *Server) Println(ctx interface{}, args ...interface{})

func (*Server) Serve

func (srv *Server) Serve(ln net.Listener) error

Serve

func (*Server) SetDefaults

func (srv *Server) SetDefaults() error

ssh.Server

func (*Server) Shutdown

func (srv *Server) Shutdown(ctx context.Context) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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