ssh

package
v0.0.0-...-de13f5b Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScreen

func NewScreen(s ssh.Session) (tcell.Screen, error)

Types

type Server

type Server struct {
	Addr    string
	Handler SessionHandler

	*ssh.Server `json:"-"`
}

func (*Server) Activate

func (s *Server) Activate(ctx context.Context) (err error)

func (*Server) Assemble

func (s *Server) Assemble(h SessionHandler)

func (*Server) Deactivate

func (s *Server) Deactivate(ctx context.Context) error

type Session

type Session = ssh.Session

type SessionHandler

type SessionHandler interface {
	HandleSSH(ssh.Session)
}

Jump to

Keyboard shortcuts

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