ssh

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSH_MSG_USERAUTH_REQUEST = 50
)

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte, out interface{}) error

Types

type DirectStreamLocalChannelOpenPayload

type DirectStreamLocalChannelOpenPayload struct {
	SocketPath string
	Reserved1  string
	Reserved2  uint32
}

type EnvRequestPayload

type EnvRequestPayload struct {
	Name  string
	Value string
}

type ExecRequestPayload

type ExecRequestPayload struct {
	Exec string
}

type ExitSignalPayload

type ExitSignalPayload struct {
	Signal       string
	CoreDumped   bool
	ErrorMessage string
	LanguageTag  string
}

type ExitStatusPayload

type ExitStatusPayload struct {
	ExitStatus uint32
}

type ForwardTCPChannelOpenPayload

type ForwardTCPChannelOpenPayload struct {
	ConnectedAddress  string
	ConnectedPort     uint32
	OriginatorAddress string
	OriginatorPort    uint32
}

type ForwardTCPIPRequestPayload

type ForwardTCPIPRequestPayload struct {
	Address string
	Port    uint32
}

type ForwardedStreamLocalChannelOpenPayload

type ForwardedStreamLocalChannelOpenPayload struct {
	SocketPath string
	Reserved   string
}

type PtyRequestPayload

type PtyRequestPayload struct {
	Term     string
	Columns  uint32
	Rows     uint32
	Width    uint32
	Height   uint32
	ModeList []byte
}

type RequestType

type RequestType string
const (
	// Channel
	RequestTypeEnv       RequestType = "env"
	RequestTypePty       RequestType = "pty-req"
	RequestTypeShell     RequestType = "shell"
	RequestTypeExec      RequestType = "exec"
	RequestTypeSubsystem RequestType = "subsystem"
	RequestTypeWindow    RequestType = "window-change"
	RequestTypeSignal    RequestType = "signal"
	RequestTypeX11       RequestType = "x11-req"

	// Global
	RequestTypeReverseForward           RequestType = "tcpip-forward"
	RequestTypeCancelReverseForward     RequestType = "cancel-tcpip-forward"
	RequestTypeStreamLocalForward       RequestType = "streamlocal-forward@openssh.com"
	RequestTypeCancelStreamLocalForward RequestType = "cancel-streamlocal-forward@openssh.com"
)

type ShellRequestPayload

type ShellRequestPayload struct {
}

type SignalRequestPayload

type SignalRequestPayload struct {
	Signal string
}

type StreamLocalForwardRequestPayload

type StreamLocalForwardRequestPayload struct {
	//State uint32 this field is there in the docs but not actually present in the channel data, weird
	SocketPath string
}

type SubsystemRequestPayload

type SubsystemRequestPayload struct {
	Subsystem string
}

type WindowRequestPayload

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

type X11ChanOpenRequestPayload

type X11ChanOpenRequestPayload struct {
	OriginatorAddress string
	OriginatorPort    uint32
}

type X11RequestPayload

type X11RequestPayload struct {
	SingleConnection bool
	Protocol         string
	Cookie           string
	Screen           uint32
}

Jump to

Keyboard shortcuts

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