session

package
v0.0.0-...-d0e72d0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleDirectTcpip

func HandleDirectTcpip(ctx context.Context, newChannel ssh.NewChannel)

HandleDirectTcpip handles direct TCP/IP forwarding

func HandleSession

func HandleSession(ctx context.Context, newChannel ssh.NewChannel, cfg *types.Config)

HandleSession handles a session channel

Types

type ForwardManager

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

ForwardManager manages remote port forwarding

func NewForwardManager

func NewForwardManager(conn *ssh.ServerConn) *ForwardManager

NewForwardManager creates a new forward manager

func (*ForwardManager) CancelForward

func (fm *ForwardManager) CancelForward(ctx context.Context, req *ssh.Request)

CancelForward cancels a remote port forward

func (*ForwardManager) Close

func (fm *ForwardManager) Close()

Close closes all listeners

func (*ForwardManager) HandleTcpipForward

func (fm *ForwardManager) HandleTcpipForward(ctx context.Context, req *ssh.Request)

HandleTcpipForward handles a tcpip-forward request

Jump to

Keyboard shortcuts

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