sshd

package
v0.0.0-...-37acf21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelTypeDirectTCPIP = "direct-tcpip"
	ChannelTypeSession     = "session"

	RequestTypePtyReq       = "pty-req"
	RequestTypeX11Req       = "x11-req"
	RequestTypeEnv          = "env"
	RequestTypeShell        = "shell"
	RequestTypeExec         = "exec"
	RequestTypeSubsystem    = "subsystem"
	RequestTypeWindowChange = "window-change"
	RequestTypeExitStatus   = "exit-status"
)

Variables

This section is empty.

Functions

func DLog

func DLog(conn ssh.ConnMetadata) *zerolog.Event

func ELog

func ELog(conn ssh.ConnMetadata) *zerolog.Event

func ILog

func ILog(conn ssh.ConnMetadata) *zerolog.Event

Types

type DirectTCPIPExtraData

type DirectTCPIPExtraData struct {
	Host           string
	Port           uint32
	OriginatorIP   string
	OriginatorPort uint32
}

type EnvRequestPayload

type EnvRequestPayload struct {
	Name  string
	Value string
}

type ExecRequestPayload

type ExecRequestPayload struct {
	Command string
}

type ExitStatusRequestPayload

type ExitStatusRequestPayload struct {
	Code uint32
}

type PtyRequestPayload

type PtyRequestPayload struct {
	Term   string
	Cols   uint32
	Rows   uint32
	Width  uint32
	Height uint32
	Modes  string
}

type SSHD

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

func New

func New(opts types.SSHDOptions) *SSHD

func (*SSHD) OverrideKeys

func (s *SSHD) OverrideKeys() (err error)

func (*SSHD) Run

func (s *SSHD) Run() (err error)

func (*SSHD) Shutdown

func (s *SSHD) Shutdown()

type TunnelPool

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

func NewTunnelPool

func NewTunnelPool(clientSigners []ssh.Signer) *TunnelPool

func (*TunnelPool) Close

func (t *TunnelPool) Close()

func (*TunnelPool) Dial

func (t *TunnelPool) Dial(address string, port int) (c net.Conn, err error)

func (*TunnelPool) GetClient

func (t *TunnelPool) GetClient(address string) (c *ssh.Client, err error)

type WindowChangeRequestPayload

type WindowChangeRequestPayload struct {
	Cols   uint32
	Rows   uint32
	Width  uint32
	Height uint32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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