sshdebug

package module
v0.0.0-...-2867ec3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrEOF is the error when the terminal exits
	ErrEOF = errors.New("EOF")
)

Functions

func SessionHandler

func SessionHandler(ctx context.Context, sconn *sshd.SSHSMux, newChannel ssh.NewChannel)

sessionHandler handles the "session" channel. Based on build flags, it may handle sftp, PTY channels and exec. TODO: If "exec" is called, it may invoke http handlers and handle internal console/logs

Types

type Pty

type Pty struct {
	Term   string
	Window Window
}

Pty represents a PTY request and configuration.

type Signal

type Signal string

type Window

type Window struct {
	Width  int
	Height int
}

Window represents the size of a PTY window.

Jump to

Keyboard shortcuts

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