sshd

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseWindowChangeReq

func ParseWindowChangeReq(req []byte) (uint32, uint32)

Types

type ECDSAKey

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

func NewECDSAKey

func NewECDSAKey() (*ECDSAKey, error)

func (*ECDSAKey) GetFingerprint

func (k *ECDSAKey) GetFingerprint() (string, error)

GetFingerprint returns the fingerprint of the public key

func (*ECDSAKey) GetPrivateKey

func (k *ECDSAKey) GetPrivateKey() ([]byte, error)

GetPrivateKey returns the private key in PEM format

func (*ECDSAKey) GetPublicKey

func (k *ECDSAKey) GetPublicKey() ([]byte, error)

GetPublicKey returns the public key in SSH format

type ExitStatus

type ExitStatus struct {
	Status uint32
}

type ExtendedChannel

type ExtendedChannel struct {
	ssh.Channel
	// contains filtered or unexported fields
}

func NewExtendedChannel

func NewExtendedChannel(channel ssh.Channel) *ExtendedChannel

func (*ExtendedChannel) CloseWithStatus

func (e *ExtendedChannel) CloseWithStatus(status int)

type ExtraData

type ExtraData struct {
	TargetHost     string
	TargetPort     uint32
	OriginatorIP   string
	OriginatorPort uint32
}

func GetExtraData

func GetExtraData(extraData []byte) (*ExtraData, error)

type PtyReq

type PtyReq struct {
	Term          string
	Columns, Rows uint32
	Width, Height uint32
	Modes         string
}

func ParsePtyReq

func ParsePtyReq(req *ssh.Request) (*PtyReq, error)

Jump to

Keyboard shortcuts

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