protocol

package
v0.0.0-...-4e9167d Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgTypePTYReq = "pty-req"
	MsgTypeX11Req = "x11-req"
	MsgTypeEnv    = "env"
	MsgTypeExec   = "exec"
	MsgTypeShell  = "shell"
	MsgTypeSignal = "signal"

	MsgTypeSubsystem       = "subsystem"
	MsgTypeExitStatus      = "exit-status"
	MsgTypeExitSignal      = "exit-signal"
	MsgTypeTcpIpForward    = "tcpip-forward"
	MsgTypePTYWindowChange = "window-change"
)
View Source
const (
	MsgTypeAuthAgent = "auth-agent-req@openssh.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgChannelOpenDirect

type MsgChannelOpenDirect struct {
	RAddr string
	RPort uint32
	LAddr string
	LPort uint32
}

RFC 4254 Section 7.2 TCP/IP Forwarding Channels type: "direct-tcpip"

type MsgChannelOpenForwarded

type MsgChannelOpenForwarded struct {
	RAddr string
	RPort uint32
	LAddr string
	LPort uint32
}

RFC 4254 Section 7.2 TCP/IP Forwarding Channels type: "forwarded-tcpip"

type MsgExitSignal

type MsgExitSignal struct {
	// signal name (without the "SIG" prefix)
	Signal     string
	CoreDumped bool
	Error      string
	Lang       string
}

RFC 4254 Section 6.10 Returning Exit Status type: "exit-signal"

type MsgExitStatus

type MsgExitStatus struct {
	ExitStatus uint32
}

RFC 4254 Section 6.10 Returning Exit Status type: "exit-status"

type MsgRequestAuthAgent

type MsgRequestAuthAgent struct{}

type MsgRequestCancelPortForward

type MsgRequestCancelPortForward struct {
	Address string
	Port    uint32
}

RFC 4254 Section 7.1 Requesting Port Forwarding type: "cancel-tcpip-forward"

type MsgRequestExec

type MsgRequestExec struct {
	Command string
}

RFC 4254 Section 6.5 Starting a Shell or a Command type: "exec"

This message will request that the server start the execution of the

given command.

type MsgRequestPTY

type MsgRequestPTY struct {
	Term     string
	Columns  uint32
	Rows     uint32
	Width    uint32
	Height   uint32
	Modelist string
}

RFC 4254 Section 6.2 Requesting a Pseudo-Terminal type: "pty-req"

type MsgRequestPTYWindowChange

type MsgRequestPTYWindowChange struct {
	Columns uint32
	Rows    uint32
	Width   uint32
	Height  uint32
}

RFC 4254 Section 6.7 Window Dimension Change Message type: "window-change"

type MsgRequestPortForward

type MsgRequestPortForward struct {
	Address string
	Port    uint32
}

RFC 4254 Section 7.1 Requesting Port Forwarding type: "tcpip-forward"

type MsgRequestSetEnv

type MsgRequestSetEnv struct {
	Name  string
	Value string
}

RFC 4254 Section 6.4 Environment Variable Passing type: "env" Environment variables

type MsgRequestShell

type MsgRequestShell struct{}

RFC 4254 Section 6.5 Starting a Shell or a Command type: "shell"

This message will request that the user's default shell (typically

defined in /etc/passwd in UNIX systems) be started at the other end.

type MsgRequestSubsystem

type MsgRequestSubsystem struct {
	Name string
}

RFC 4254 Section 6.5 Starting a Shell or a Command type: "subsystem" Predefined subsystem

type MsgRequestX11Forward

type MsgRequestX11Forward struct {
	Single       bool
	AuthProtocol string
	AuthCookie   string
	ScreenNumber uint32
}

RFC 4254 Section 6.3.1 Requesting X11 Forwarding type: "x11-req"

type MsgSignal

type MsgSignal struct {
	// signal name (without the "SIG" prefix)
	Signal string
}

RFC 4254 Section 6.9 Signals type: "signal"

type MsgUnparsed

type MsgUnparsed struct {
	Type    string
	Payload []byte
}

func NewUnparsedMsg

func NewUnparsedMsg(msgType string, payload []byte) *MsgUnparsed

Jump to

Keyboard shortcuts

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