patchssh

package
v0.0.0-...-ed2ac0f Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWorkerPoolInit        = errors.New("error initializing worker pool")
	ErrWorkerPoolAlreadyInit = errors.New("worker pool already initialized")
	ErrMissingDBConn         = errors.New("missing database connection")
	ErrSSHConfig             = errors.New("error loading ssh config")
)

Functions

func NewConnTaskWrapper

func NewConnTaskWrapper(conn net.Conn, sshConfig *ssh.ServerConfig, logger log.Logger) *connTaskWrapper

Types

type ChannelHandler

type ChannelHandler func(ctx context.Context, channel ssh.NewChannel) error

type ErrInitWorkerPoolReason

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

func (ErrInitWorkerPoolReason) Error

func (e ErrInitWorkerPoolReason) Error() string

func (ErrInitWorkerPoolReason) Unwrap

func (e ErrInitWorkerPoolReason) Unwrap() error

type ErrSSHConfigReason

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

func (ErrSSHConfigReason) Error

func (e ErrSSHConfigReason) Error() string

func (ErrSSHConfigReason) Unwrap

func (e ErrSSHConfigReason) Unwrap() error

type RequestHandler

type RequestHandler func(ctx context.Context, channel ssh.Channel, request *ssh.Request)

type SocketServer

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

func NewServer

func NewServer(serverOptions config.Config, keyDB models.KeyDB) (*SocketServer, error)

func (*SocketServer) AuthLogCallback

func (s *SocketServer) AuthLogCallback(conn ssh.ConnMetadata, method string, err error)

func (*SocketServer) Serve

func (s *SocketServer) Serve(ctx context.Context) error

serve starts accepting connections on the socket, is non blocking, reports startup errors directly and is non blocking

type SubsystemHandler

type SubsystemHandler func(ctx context.Context, subsystem string) error

Directories

Path Synopsis
Package auth provides authentication management for SSH connections.
Package auth provides authentication management for SSH connections.

Jump to

Keyboard shortcuts

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