sshv1

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ssh_v1_ssh_chunks_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BreakRequest

type BreakRequest struct {

	// The request type field. This should always be "break"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request. This should always be false.
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Break-length in milliseconds
	BreakLengthMs uint32 `protobuf:"varint,3,opt,name=break_length_ms,json=breakLengthMs,proto3" json:"break_length_ms,omitempty"`
	// contains filtered or unexported fields
}

The following channel-specific request can be sent over a session channel to request that the remote host perform a BREAK operation.

func (*BreakRequest) Descriptor deprecated

func (*BreakRequest) Descriptor() ([]byte, []int)

Deprecated: Use BreakRequest.ProtoReflect.Descriptor instead.

func (*BreakRequest) GetBreakLengthMs

func (x *BreakRequest) GetBreakLengthMs() uint32

func (*BreakRequest) GetRequestType

func (x *BreakRequest) GetRequestType() string

func (*BreakRequest) GetWantReply

func (x *BreakRequest) GetWantReply() bool

func (*BreakRequest) ProtoMessage

func (*BreakRequest) ProtoMessage()

func (*BreakRequest) ProtoReflect

func (x *BreakRequest) ProtoReflect() protoreflect.Message

func (*BreakRequest) Reset

func (x *BreakRequest) Reset()

func (*BreakRequest) String

func (x *BreakRequest) String() string

type CancelTCPIPForwardRequest

type CancelTCPIPForwardRequest struct {

	// The request type field. This should always be "cancel-tcpip-forward"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request. This should always be false.
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Address to bind (e.g., "0.0.0.0") on which connections for forwarding
	// are to be accepted
	AddressToBind string `protobuf:"bytes,3,opt,name=address_to_bind,json=addressToBind,proto3" json:"address_to_bind,omitempty"`
	// Port number to bind on which connections for forwarding
	// are to be accepted
	PortToBind uint32 `protobuf:"varint,4,opt,name=port_to_bind,json=portToBind,proto3" json:"port_to_bind,omitempty"`
	// contains filtered or unexported fields
}

A port forwarding can be canceled with the following message. Note that channel open requests may be received until a reply to this message is received.

func (*CancelTCPIPForwardRequest) Descriptor deprecated

func (*CancelTCPIPForwardRequest) Descriptor() ([]byte, []int)

Deprecated: Use CancelTCPIPForwardRequest.ProtoReflect.Descriptor instead.

func (*CancelTCPIPForwardRequest) GetAddressToBind

func (x *CancelTCPIPForwardRequest) GetAddressToBind() string

func (*CancelTCPIPForwardRequest) GetPortToBind

func (x *CancelTCPIPForwardRequest) GetPortToBind() uint32

func (*CancelTCPIPForwardRequest) GetRequestType

func (x *CancelTCPIPForwardRequest) GetRequestType() string

func (*CancelTCPIPForwardRequest) GetWantReply

func (x *CancelTCPIPForwardRequest) GetWantReply() bool

func (*CancelTCPIPForwardRequest) ProtoMessage

func (*CancelTCPIPForwardRequest) ProtoMessage()

func (*CancelTCPIPForwardRequest) ProtoReflect

func (*CancelTCPIPForwardRequest) Reset

func (x *CancelTCPIPForwardRequest) Reset()

func (*CancelTCPIPForwardRequest) String

func (x *CancelTCPIPForwardRequest) String() string

type DirectTCPIPRequest

type DirectTCPIPRequest struct {

	// The request type field. This should always be "direct-tcpip"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The sender channel
	SenderChannel uint32 `protobuf:"varint,2,opt,name=sender_channel,json=senderChannel,proto3" json:"sender_channel,omitempty"`
	// The initial window size
	InitialWindowSize uint32 `protobuf:"varint,3,opt,name=initial_window_size,json=initialWindowSize,proto3" json:"initial_window_size,omitempty"`
	// The maximum packet size
	MaximumPacketSize uint32 `protobuf:"varint,4,opt,name=maximum_packet_size,json=maximumPacketSize,proto3" json:"maximum_packet_size,omitempty"`
	// The host to connect
	Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"`
	// The port to connect
	Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	// The 'originator IP address' is the numeric IP address of the machine
	// from where the connection request originates
	OriginatorIpAddress string `protobuf:"bytes,7,opt,name=originator_ip_address,json=originatorIpAddress,proto3" json:"originator_ip_address,omitempty"`
	// The port on the host from where the connection originated.
	OriginatorPort uint32 `protobuf:"varint,8,opt,name=originator_port,json=originatorPort,proto3" json:"originator_port,omitempty"`
	// contains filtered or unexported fields
}

When a connection comes to a locally forwarded TCP/IP port, the following packet is sent to the other side.

func (*DirectTCPIPRequest) Descriptor deprecated

func (*DirectTCPIPRequest) Descriptor() ([]byte, []int)

Deprecated: Use DirectTCPIPRequest.ProtoReflect.Descriptor instead.

func (*DirectTCPIPRequest) GetHost

func (x *DirectTCPIPRequest) GetHost() string

func (*DirectTCPIPRequest) GetInitialWindowSize

func (x *DirectTCPIPRequest) GetInitialWindowSize() uint32

func (*DirectTCPIPRequest) GetMaximumPacketSize

func (x *DirectTCPIPRequest) GetMaximumPacketSize() uint32

func (*DirectTCPIPRequest) GetOriginatorIpAddress

func (x *DirectTCPIPRequest) GetOriginatorIpAddress() string

func (*DirectTCPIPRequest) GetOriginatorPort

func (x *DirectTCPIPRequest) GetOriginatorPort() uint32

func (*DirectTCPIPRequest) GetPort

func (x *DirectTCPIPRequest) GetPort() uint32

func (*DirectTCPIPRequest) GetRequestType

func (x *DirectTCPIPRequest) GetRequestType() string

func (*DirectTCPIPRequest) GetSenderChannel

func (x *DirectTCPIPRequest) GetSenderChannel() uint32

func (*DirectTCPIPRequest) ProtoMessage

func (*DirectTCPIPRequest) ProtoMessage()

func (*DirectTCPIPRequest) ProtoReflect

func (x *DirectTCPIPRequest) ProtoReflect() protoreflect.Message

func (*DirectTCPIPRequest) Reset

func (x *DirectTCPIPRequest) Reset()

func (*DirectTCPIPRequest) String

func (x *DirectTCPIPRequest) String() string

type EnvRequest

type EnvRequest struct {

	// The request type field. This should always be "env"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Variable name
	VariableName string `protobuf:"bytes,3,opt,name=variable_name,json=variableName,proto3" json:"variable_name,omitempty"`
	// Variable value
	VariableValue string `protobuf:"bytes,4,opt,name=variable_value,json=variableValue,proto3" json:"variable_value,omitempty"`
	// contains filtered or unexported fields
}

Environment variables may be passed to the shell/command to be started later.

func (*EnvRequest) Descriptor deprecated

func (*EnvRequest) Descriptor() ([]byte, []int)

Deprecated: Use EnvRequest.ProtoReflect.Descriptor instead.

func (*EnvRequest) GetRequestType

func (x *EnvRequest) GetRequestType() string

func (*EnvRequest) GetVariableName

func (x *EnvRequest) GetVariableName() string

func (*EnvRequest) GetVariableValue

func (x *EnvRequest) GetVariableValue() string

func (*EnvRequest) GetWantReply

func (x *EnvRequest) GetWantReply() bool

func (*EnvRequest) ProtoMessage

func (*EnvRequest) ProtoMessage()

func (*EnvRequest) ProtoReflect

func (x *EnvRequest) ProtoReflect() protoreflect.Message

func (*EnvRequest) Reset

func (x *EnvRequest) Reset()

func (*EnvRequest) String

func (x *EnvRequest) String() string

type ExecRequest

type ExecRequest struct {

	// The request type field. This should always be "exec"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// The command to be executed
	Command string `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

This message will request that the server start the execution of the given command. The 'command' string may contain a path.

func (*ExecRequest) Descriptor deprecated

func (*ExecRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExecRequest.ProtoReflect.Descriptor instead.

func (*ExecRequest) GetCommand

func (x *ExecRequest) GetCommand() string

func (*ExecRequest) GetRequestType

func (x *ExecRequest) GetRequestType() string

func (*ExecRequest) GetWantReply

func (x *ExecRequest) GetWantReply() bool

func (*ExecRequest) ProtoMessage

func (*ExecRequest) ProtoMessage()

func (*ExecRequest) ProtoReflect

func (x *ExecRequest) ProtoReflect() protoreflect.Message

func (*ExecRequest) Reset

func (x *ExecRequest) Reset()

func (*ExecRequest) String

func (x *ExecRequest) String() string

type ExitSignalRequest

type ExitSignalRequest struct {

	// The request type field. This should always be "exit-signal"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request. This should always be false.
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Signal name, without the SIG prefix. The 'signal name' is one of the following (these are from [POSIX]).
	//
	//	ABRT   ALRM   FPE   HUP   ILL   INT   KILL
	//	PIPE   QUIT   SEGV  TERM  USR1  USR2
	SignalName string `protobuf:"bytes,3,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"`
	// Core dumped
	CoreDumped bool `protobuf:"varint,4,opt,name=core_dumped,json=coreDumped,proto3" json:"core_dumped,omitempty"`
	// Error message in ISO-10646 UTF-8 encoding
	ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// Language tag from https://www.rfc-editor.org/rfc/rfc3066
	LanguageTag string `protobuf:"bytes,6,opt,name=language_tag,json=languageTag,proto3" json:"language_tag,omitempty"`
	// contains filtered or unexported fields
}

The remote command may terminate violently due to a signal. Such a condition can be indicated by the following message. A zero 'exit_status' usually means that the command terminated successfully.

func (*ExitSignalRequest) Descriptor deprecated

func (*ExitSignalRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExitSignalRequest.ProtoReflect.Descriptor instead.

func (*ExitSignalRequest) GetCoreDumped

func (x *ExitSignalRequest) GetCoreDumped() bool

func (*ExitSignalRequest) GetErrorMessage

func (x *ExitSignalRequest) GetErrorMessage() string

func (*ExitSignalRequest) GetLanguageTag

func (x *ExitSignalRequest) GetLanguageTag() string

func (*ExitSignalRequest) GetRequestType

func (x *ExitSignalRequest) GetRequestType() string

func (*ExitSignalRequest) GetSignalName

func (x *ExitSignalRequest) GetSignalName() string

func (*ExitSignalRequest) GetWantReply

func (x *ExitSignalRequest) GetWantReply() bool

func (*ExitSignalRequest) ProtoMessage

func (*ExitSignalRequest) ProtoMessage()

func (*ExitSignalRequest) ProtoReflect

func (x *ExitSignalRequest) ProtoReflect() protoreflect.Message

func (*ExitSignalRequest) Reset

func (x *ExitSignalRequest) Reset()

func (*ExitSignalRequest) String

func (x *ExitSignalRequest) String() string

type ExitStatusRequest

type ExitStatusRequest struct {

	// The request type field. This should always be "exit-status"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request. This should always be false.
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Exit status of the command
	ExitStatus uint32 `protobuf:"varint,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
	// contains filtered or unexported fields
}

When the command running at the other end terminates, the following

message can be sent to return the exit status of the command.

func (*ExitStatusRequest) Descriptor deprecated

func (*ExitStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExitStatusRequest.ProtoReflect.Descriptor instead.

func (*ExitStatusRequest) GetExitStatus

func (x *ExitStatusRequest) GetExitStatus() uint32

func (*ExitStatusRequest) GetRequestType

func (x *ExitStatusRequest) GetRequestType() string

func (*ExitStatusRequest) GetWantReply

func (x *ExitStatusRequest) GetWantReply() bool

func (*ExitStatusRequest) ProtoMessage

func (*ExitStatusRequest) ProtoMessage()

func (*ExitStatusRequest) ProtoReflect

func (x *ExitStatusRequest) ProtoReflect() protoreflect.Message

func (*ExitStatusRequest) Reset

func (x *ExitStatusRequest) Reset()

func (*ExitStatusRequest) String

func (x *ExitStatusRequest) String() string

type ForwardedTCPIPRequest

type ForwardedTCPIPRequest struct {

	// The request type field. This should always be "forwarded-tcpip"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The sender channel
	SenderChannel uint32 `protobuf:"varint,2,opt,name=sender_channel,json=senderChannel,proto3" json:"sender_channel,omitempty"`
	// The initial window size
	InitialWindowSize uint32 `protobuf:"varint,3,opt,name=initial_window_size,json=initialWindowSize,proto3" json:"initial_window_size,omitempty"`
	// The maximum packet size
	MaximumPacketSize uint32 `protobuf:"varint,4,opt,name=maximum_packet_size,json=maximumPacketSize,proto3" json:"maximum_packet_size,omitempty"`
	// The address that was connected
	Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	// The port that was connected
	Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	// The originator ip address (e.g., "192.168.7.38")
	OriginatorIpAddress string `protobuf:"bytes,7,opt,name=originator_ip_address,json=originatorIpAddress,proto3" json:"originator_ip_address,omitempty"`
	// The originator port
	OriginatorPort uint32 `protobuf:"varint,8,opt,name=originator_port,json=originatorPort,proto3" json:"originator_port,omitempty"`
	// contains filtered or unexported fields
}

When a connection comes to a port for which remote forwarding has been requested, a channel is opened to forward the port to the other side.

func (*ForwardedTCPIPRequest) Descriptor deprecated

func (*ForwardedTCPIPRequest) Descriptor() ([]byte, []int)

Deprecated: Use ForwardedTCPIPRequest.ProtoReflect.Descriptor instead.

func (*ForwardedTCPIPRequest) GetAddress

func (x *ForwardedTCPIPRequest) GetAddress() string

func (*ForwardedTCPIPRequest) GetInitialWindowSize

func (x *ForwardedTCPIPRequest) GetInitialWindowSize() uint32

func (*ForwardedTCPIPRequest) GetMaximumPacketSize

func (x *ForwardedTCPIPRequest) GetMaximumPacketSize() uint32

func (*ForwardedTCPIPRequest) GetOriginatorIpAddress

func (x *ForwardedTCPIPRequest) GetOriginatorIpAddress() string

func (*ForwardedTCPIPRequest) GetOriginatorPort

func (x *ForwardedTCPIPRequest) GetOriginatorPort() uint32

func (*ForwardedTCPIPRequest) GetPort

func (x *ForwardedTCPIPRequest) GetPort() uint32

func (*ForwardedTCPIPRequest) GetRequestType

func (x *ForwardedTCPIPRequest) GetRequestType() string

func (*ForwardedTCPIPRequest) GetSenderChannel

func (x *ForwardedTCPIPRequest) GetSenderChannel() uint32

func (*ForwardedTCPIPRequest) ProtoMessage

func (*ForwardedTCPIPRequest) ProtoMessage()

func (*ForwardedTCPIPRequest) ProtoReflect

func (x *ForwardedTCPIPRequest) ProtoReflect() protoreflect.Message

func (*ForwardedTCPIPRequest) Reset

func (x *ForwardedTCPIPRequest) Reset()

func (*ForwardedTCPIPRequest) String

func (x *ForwardedTCPIPRequest) String() string

type PtyRequest

type PtyRequest struct {

	// The request type field. This should always be "pty-req"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// TERM environment variable value (e.g., vt100)
	TermEnvVar string `protobuf:"bytes,3,opt,name=term_env_var,json=termEnvVar,proto3" json:"term_env_var,omitempty"`
	// Terminal width, characters (e.g., 80)
	TerminalWidthCharacters uint32 `` /* 133-byte string literal not displayed */
	// Terminal height, rows (e.g., 24)
	TerminalHeightRows uint32 `protobuf:"varint,5,opt,name=terminal_height_rows,json=terminalHeightRows,proto3" json:"terminal_height_rows,omitempty"`
	// Terminal width, pixels (e.g., 640)
	TerminalWidthPixels uint32 `protobuf:"varint,6,opt,name=terminal_width_pixels,json=terminalWidthPixels,proto3" json:"terminal_width_pixels,omitempty"`
	// Terminal height, pixels (e.g., 480)
	TerminalHeightPixels uint32 `protobuf:"varint,7,opt,name=terminal_height_pixels,json=terminalHeightPixels,proto3" json:"terminal_height_pixels,omitempty"`
	// Encoded terminal modes
	EncodedTerminalMode []byte `protobuf:"bytes,8,opt,name=encoded_terminal_mode,json=encodedTerminalMode,proto3" json:"encoded_terminal_mode,omitempty"`
	// contains filtered or unexported fields
}

A pseudo-terminal can be allocated for the session by sending the following message.

func (*PtyRequest) Descriptor deprecated

func (*PtyRequest) Descriptor() ([]byte, []int)

Deprecated: Use PtyRequest.ProtoReflect.Descriptor instead.

func (*PtyRequest) GetEncodedTerminalMode

func (x *PtyRequest) GetEncodedTerminalMode() []byte

func (*PtyRequest) GetRequestType

func (x *PtyRequest) GetRequestType() string

func (*PtyRequest) GetTermEnvVar

func (x *PtyRequest) GetTermEnvVar() string

func (*PtyRequest) GetTerminalHeightPixels

func (x *PtyRequest) GetTerminalHeightPixels() uint32

func (*PtyRequest) GetTerminalHeightRows

func (x *PtyRequest) GetTerminalHeightRows() uint32

func (*PtyRequest) GetTerminalWidthCharacters

func (x *PtyRequest) GetTerminalWidthCharacters() uint32

func (*PtyRequest) GetTerminalWidthPixels

func (x *PtyRequest) GetTerminalWidthPixels() uint32

func (*PtyRequest) GetWantReply

func (x *PtyRequest) GetWantReply() bool

func (*PtyRequest) ProtoMessage

func (*PtyRequest) ProtoMessage()

func (*PtyRequest) ProtoReflect

func (x *PtyRequest) ProtoReflect() protoreflect.Message

func (*PtyRequest) Reset

func (x *PtyRequest) Reset()

func (*PtyRequest) String

func (x *PtyRequest) String() string

type SessionRequest

type SessionRequest struct {

	// The request type field. This should always be "session"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The sender channel
	SenderChannel uint32 `protobuf:"varint,2,opt,name=sender_channel,json=senderChannel,proto3" json:"sender_channel,omitempty"`
	// The initial window size
	InitialWindowSize uint32 `protobuf:"varint,3,opt,name=initial_window_size,json=initialWindowSize,proto3" json:"initial_window_size,omitempty"`
	// The maximum packet size
	MaximumPacketSize uint32 `protobuf:"varint,4,opt,name=maximum_packet_size,json=maximumPacketSize,proto3" json:"maximum_packet_size,omitempty"`
	// contains filtered or unexported fields
}

A session is started by sending the following message.

func (*SessionRequest) Descriptor deprecated

func (*SessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use SessionRequest.ProtoReflect.Descriptor instead.

func (*SessionRequest) GetInitialWindowSize

func (x *SessionRequest) GetInitialWindowSize() uint32

func (*SessionRequest) GetMaximumPacketSize

func (x *SessionRequest) GetMaximumPacketSize() uint32

func (*SessionRequest) GetRequestType

func (x *SessionRequest) GetRequestType() string

func (*SessionRequest) GetSenderChannel

func (x *SessionRequest) GetSenderChannel() uint32

func (*SessionRequest) ProtoMessage

func (*SessionRequest) ProtoMessage()

func (*SessionRequest) ProtoReflect

func (x *SessionRequest) ProtoReflect() protoreflect.Message

func (*SessionRequest) Reset

func (x *SessionRequest) Reset()

func (*SessionRequest) String

func (x *SessionRequest) String() string

type ShellRequest

type ShellRequest struct {

	// The request type field. This should always be "shell"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// contains filtered or unexported fields
}

This message will request that the user's default shell (typically defined in /etc/passwd in UNIX systems) be started at the other end.

func (*ShellRequest) Descriptor deprecated

func (*ShellRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShellRequest.ProtoReflect.Descriptor instead.

func (*ShellRequest) GetRequestType

func (x *ShellRequest) GetRequestType() string

func (*ShellRequest) GetWantReply

func (x *ShellRequest) GetWantReply() bool

func (*ShellRequest) ProtoMessage

func (*ShellRequest) ProtoMessage()

func (*ShellRequest) ProtoReflect

func (x *ShellRequest) ProtoReflect() protoreflect.Message

func (*ShellRequest) Reset

func (x *ShellRequest) Reset()

func (*ShellRequest) String

func (x *ShellRequest) String() string

type SignalRequest

type SignalRequest struct {

	// The request type field. This should always be "signal"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request. This should always be false
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Signal name, without the SIG prefix. The 'signal name' is one of the following (these are from [POSIX]).
	//
	//	ABRT   ALRM   FPE   HUP   ILL   INT   KILL
	//	PIPE   QUIT   SEGV  TERM  USR1  USR2
	SignalName string `protobuf:"bytes,3,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"`
	// contains filtered or unexported fields
}

A signal can be delivered to the remote process/service using the following message.

func (*SignalRequest) Descriptor deprecated

func (*SignalRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignalRequest.ProtoReflect.Descriptor instead.

func (*SignalRequest) GetRequestType

func (x *SignalRequest) GetRequestType() string

func (*SignalRequest) GetSignalName

func (x *SignalRequest) GetSignalName() string

func (*SignalRequest) GetWantReply

func (x *SignalRequest) GetWantReply() bool

func (*SignalRequest) ProtoMessage

func (*SignalRequest) ProtoMessage()

func (*SignalRequest) ProtoReflect

func (x *SignalRequest) ProtoReflect() protoreflect.Message

func (*SignalRequest) Reset

func (x *SignalRequest) Reset()

func (*SignalRequest) String

func (x *SignalRequest) String() string

type SubsystemRequest

type SubsystemRequest struct {

	// The request type field. This should always be "subsystem"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// The predefined subsystem to execute
	SubsystemName string `protobuf:"bytes,3,opt,name=subsystem_name,json=subsystemName,proto3" json:"subsystem_name,omitempty"`
	// contains filtered or unexported fields
}

Execute a predefined subsystem. It is expected that these will include a general file transfer mechanism, and possibly other features.

func (*SubsystemRequest) Descriptor deprecated

func (*SubsystemRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubsystemRequest.ProtoReflect.Descriptor instead.

func (*SubsystemRequest) GetRequestType

func (x *SubsystemRequest) GetRequestType() string

func (*SubsystemRequest) GetSubsystemName

func (x *SubsystemRequest) GetSubsystemName() string

func (*SubsystemRequest) GetWantReply

func (x *SubsystemRequest) GetWantReply() bool

func (*SubsystemRequest) ProtoMessage

func (*SubsystemRequest) ProtoMessage()

func (*SubsystemRequest) ProtoReflect

func (x *SubsystemRequest) ProtoReflect() protoreflect.Message

func (*SubsystemRequest) Reset

func (x *SubsystemRequest) Reset()

func (*SubsystemRequest) String

func (x *SubsystemRequest) String() string

type TCPIPForwardRequest

type TCPIPForwardRequest struct {

	// The request type field. This should always be "tcpip-forward"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request. This should always be false.
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Address to bind (e.g., "0.0.0.0") on which connections for forwarding
	// are to be accepted
	AddressToBind string `protobuf:"bytes,3,opt,name=address_to_bind,json=addressToBind,proto3" json:"address_to_bind,omitempty"`
	// Port number to bind on which connections for forwarding
	// are to be accepted
	PortToBind uint32 `protobuf:"varint,4,opt,name=port_to_bind,json=portToBind,proto3" json:"port_to_bind,omitempty"`
	// contains filtered or unexported fields
}

A party need not explicitly request forwardings from its own end to the other direction. However, if it wishes that connections to a port on the other side be forwarded to the local side, it must explicitly request this.

func (*TCPIPForwardRequest) Descriptor deprecated

func (*TCPIPForwardRequest) Descriptor() ([]byte, []int)

Deprecated: Use TCPIPForwardRequest.ProtoReflect.Descriptor instead.

func (*TCPIPForwardRequest) GetAddressToBind

func (x *TCPIPForwardRequest) GetAddressToBind() string

func (*TCPIPForwardRequest) GetPortToBind

func (x *TCPIPForwardRequest) GetPortToBind() uint32

func (*TCPIPForwardRequest) GetRequestType

func (x *TCPIPForwardRequest) GetRequestType() string

func (*TCPIPForwardRequest) GetWantReply

func (x *TCPIPForwardRequest) GetWantReply() bool

func (*TCPIPForwardRequest) ProtoMessage

func (*TCPIPForwardRequest) ProtoMessage()

func (*TCPIPForwardRequest) ProtoReflect

func (x *TCPIPForwardRequest) ProtoReflect() protoreflect.Message

func (*TCPIPForwardRequest) Reset

func (x *TCPIPForwardRequest) Reset()

func (*TCPIPForwardRequest) String

func (x *TCPIPForwardRequest) String() string

type UnknownRequest

type UnknownRequest struct {

	// The request type field
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// The Payload field on the SSH request
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

An UnknownRequest is an unrecognized SSH request. We'll record the type, want_reply, and payload

func (*UnknownRequest) Descriptor deprecated

func (*UnknownRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnknownRequest.ProtoReflect.Descriptor instead.

func (*UnknownRequest) GetData

func (x *UnknownRequest) GetData() []byte

func (*UnknownRequest) GetRequestType

func (x *UnknownRequest) GetRequestType() string

func (*UnknownRequest) GetWantReply

func (x *UnknownRequest) GetWantReply() bool

func (*UnknownRequest) ProtoMessage

func (*UnknownRequest) ProtoMessage()

func (*UnknownRequest) ProtoReflect

func (x *UnknownRequest) ProtoReflect() protoreflect.Message

func (*UnknownRequest) Reset

func (x *UnknownRequest) Reset()

func (*UnknownRequest) String

func (x *UnknownRequest) String() string

type WindowChangeRequest

type WindowChangeRequest struct {

	// The request type field. This should always be "window-change"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request. This should always be false.
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Terminal width, columns
	TerminalWidthColumns uint32 `protobuf:"varint,3,opt,name=terminal_width_columns,json=terminalWidthColumns,proto3" json:"terminal_width_columns,omitempty"`
	// Terminal height, rows
	TerminalHeightRows uint32 `protobuf:"varint,4,opt,name=terminal_height_rows,json=terminalHeightRows,proto3" json:"terminal_height_rows,omitempty"`
	// Terminal width, pixels
	TerminalWidthPixels uint32 `protobuf:"varint,5,opt,name=terminal_width_pixels,json=terminalWidthPixels,proto3" json:"terminal_width_pixels,omitempty"`
	// Terminal height, pixels
	TerminalHeightPixels uint32 `protobuf:"varint,6,opt,name=terminal_height_pixels,json=terminalHeightPixels,proto3" json:"terminal_height_pixels,omitempty"`
	// contains filtered or unexported fields
}

When the window (terminal) size changes on the client side, it MAY send a message to the other side to inform it of the new dimensions.

func (*WindowChangeRequest) Descriptor deprecated

func (*WindowChangeRequest) Descriptor() ([]byte, []int)

Deprecated: Use WindowChangeRequest.ProtoReflect.Descriptor instead.

func (*WindowChangeRequest) GetRequestType

func (x *WindowChangeRequest) GetRequestType() string

func (*WindowChangeRequest) GetTerminalHeightPixels

func (x *WindowChangeRequest) GetTerminalHeightPixels() uint32

func (*WindowChangeRequest) GetTerminalHeightRows

func (x *WindowChangeRequest) GetTerminalHeightRows() uint32

func (*WindowChangeRequest) GetTerminalWidthColumns

func (x *WindowChangeRequest) GetTerminalWidthColumns() uint32

func (*WindowChangeRequest) GetTerminalWidthPixels

func (x *WindowChangeRequest) GetTerminalWidthPixels() uint32

func (*WindowChangeRequest) GetWantReply

func (x *WindowChangeRequest) GetWantReply() bool

func (*WindowChangeRequest) ProtoMessage

func (*WindowChangeRequest) ProtoMessage()

func (*WindowChangeRequest) ProtoReflect

func (x *WindowChangeRequest) ProtoReflect() protoreflect.Message

func (*WindowChangeRequest) Reset

func (x *WindowChangeRequest) Reset()

func (*WindowChangeRequest) String

func (x *WindowChangeRequest) String() string

type X11ForwardingRequest

type X11ForwardingRequest struct {

	// The request type field. This should always be "x11-req"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Single connection
	SingleConnection bool `protobuf:"varint,3,opt,name=single_connection,json=singleConnection,proto3" json:"single_connection,omitempty"`
	// X11 authentication protocol
	X11AuthenticationProtocol string `` /* 138-byte string literal not displayed */
	// X11 authentication cookie
	X11AuthenticationCookie string `` /* 132-byte string literal not displayed */
	// X11 screen number
	X11ScreenNumber uint32 `protobuf:"varint,6,opt,name=x11_screen_number,json=x11ScreenNumber,proto3" json:"x11_screen_number,omitempty"`
	// contains filtered or unexported fields
}

X11 forwarding may be requested for a session using the following message

func (*X11ForwardingRequest) Descriptor deprecated

func (*X11ForwardingRequest) Descriptor() ([]byte, []int)

Deprecated: Use X11ForwardingRequest.ProtoReflect.Descriptor instead.

func (*X11ForwardingRequest) GetRequestType

func (x *X11ForwardingRequest) GetRequestType() string

func (*X11ForwardingRequest) GetSingleConnection

func (x *X11ForwardingRequest) GetSingleConnection() bool

func (*X11ForwardingRequest) GetWantReply

func (x *X11ForwardingRequest) GetWantReply() bool

func (*X11ForwardingRequest) GetX11AuthenticationCookie

func (x *X11ForwardingRequest) GetX11AuthenticationCookie() string

func (*X11ForwardingRequest) GetX11AuthenticationProtocol

func (x *X11ForwardingRequest) GetX11AuthenticationProtocol() string

func (*X11ForwardingRequest) GetX11ScreenNumber

func (x *X11ForwardingRequest) GetX11ScreenNumber() uint32

func (*X11ForwardingRequest) ProtoMessage

func (*X11ForwardingRequest) ProtoMessage()

func (*X11ForwardingRequest) ProtoReflect

func (x *X11ForwardingRequest) ProtoReflect() protoreflect.Message

func (*X11ForwardingRequest) Reset

func (x *X11ForwardingRequest) Reset()

func (*X11ForwardingRequest) String

func (x *X11ForwardingRequest) String() string

type X11Request

type X11Request struct {

	// The request type field. This should always be "x11"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The sender channel
	SenderChannel uint32 `protobuf:"varint,2,opt,name=sender_channel,json=senderChannel,proto3" json:"sender_channel,omitempty"`
	// The initial window size
	InitialWindowSize uint32 `protobuf:"varint,3,opt,name=initial_window_size,json=initialWindowSize,proto3" json:"initial_window_size,omitempty"`
	// The maximum packet size
	MaximumPacketSize uint32 `protobuf:"varint,4,opt,name=maximum_packet_size,json=maximumPacketSize,proto3" json:"maximum_packet_size,omitempty"`
	// The originator address (e.g., "192.168.7.38")
	OriginatorAddress string `protobuf:"bytes,5,opt,name=originator_address,json=originatorAddress,proto3" json:"originator_address,omitempty"`
	// The originator port
	OriginatorPort uint32 `protobuf:"varint,6,opt,name=originator_port,json=originatorPort,proto3" json:"originator_port,omitempty"`
	// contains filtered or unexported fields
}

X11 channels are opened with a channel open request. The resulting channels are independent of the session, and closing the session channel does not close the forwarded X11 channels.

func (*X11Request) Descriptor deprecated

func (*X11Request) Descriptor() ([]byte, []int)

Deprecated: Use X11Request.ProtoReflect.Descriptor instead.

func (*X11Request) GetInitialWindowSize

func (x *X11Request) GetInitialWindowSize() uint32

func (*X11Request) GetMaximumPacketSize

func (x *X11Request) GetMaximumPacketSize() uint32

func (*X11Request) GetOriginatorAddress

func (x *X11Request) GetOriginatorAddress() string

func (*X11Request) GetOriginatorPort

func (x *X11Request) GetOriginatorPort() uint32

func (*X11Request) GetRequestType

func (x *X11Request) GetRequestType() string

func (*X11Request) GetSenderChannel

func (x *X11Request) GetSenderChannel() uint32

func (*X11Request) ProtoMessage

func (*X11Request) ProtoMessage()

func (*X11Request) ProtoReflect

func (x *X11Request) ProtoReflect() protoreflect.Message

func (*X11Request) Reset

func (x *X11Request) Reset()

func (*X11Request) String

func (x *X11Request) String() string

type XonXoffRequest

type XonXoffRequest struct {

	// The request type field. This should always be "xon-xoff"
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	// The want_reply field on the SSH request. This should always be false.
	WantReply bool `protobuf:"varint,2,opt,name=want_reply,json=wantReply,proto3" json:"want_reply,omitempty"`
	// Client can do flow control
	ClientCanDo bool `protobuf:"varint,3,opt,name=client_can_do,json=clientCanDo,proto3" json:"client_can_do,omitempty"`
	// contains filtered or unexported fields
}

The message below is used by the server to inform the client when it can or cannot perform flow control (control-S/control-Q processing). If 'client can do' is TRUE, the client is allowed to do flow control using control-S and control-Q

func (*XonXoffRequest) Descriptor deprecated

func (*XonXoffRequest) Descriptor() ([]byte, []int)

Deprecated: Use XonXoffRequest.ProtoReflect.Descriptor instead.

func (*XonXoffRequest) GetClientCanDo

func (x *XonXoffRequest) GetClientCanDo() bool

func (*XonXoffRequest) GetRequestType

func (x *XonXoffRequest) GetRequestType() string

func (*XonXoffRequest) GetWantReply

func (x *XonXoffRequest) GetWantReply() bool

func (*XonXoffRequest) ProtoMessage

func (*XonXoffRequest) ProtoMessage()

func (*XonXoffRequest) ProtoReflect

func (x *XonXoffRequest) ProtoReflect() protoreflect.Message

func (*XonXoffRequest) Reset

func (x *XonXoffRequest) Reset()

func (*XonXoffRequest) String

func (x *XonXoffRequest) String() string

Jump to

Keyboard shortcuts

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