ssh

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthSockEnvName = "SSH_AUTH_SOCK"
)

Variables

Functions

func AgentRequested

func AgentRequested(sshSess glssh.Session) bool

func ForwardAgentConnections

func ForwardAgentConnections(ln gonet.Listener, logger log.Logger, sshSess glssh.Session)

Types

type Cipher added in v0.6.0

type Cipher uint8
const (
	CipherAes128Cbc Cipher = iota
	Cipher3desCbc
	CipherArcfour
	CipherArcfour128
	CipherArcfour256
	CipherChacha20Poly1305
	CipherAes128Ctr
	CipherAes192Ctr
	CipherAes256Ctr
	CipherAes128Gcm
	CipherAes256Gcm
)

func (Cipher) IsEqualTo added in v0.6.0

func (this Cipher) IsEqualTo(other any) bool

func (Cipher) IsZero added in v0.6.0

func (this Cipher) IsZero() bool

func (Cipher) MarshalText added in v0.6.0

func (this Cipher) MarshalText() (text []byte, err error)

func (*Cipher) Set added in v0.6.0

func (this *Cipher) Set(text string) error

func (Cipher) String added in v0.6.0

func (this Cipher) String() string

func (*Cipher) UnmarshalText added in v0.6.0

func (this *Cipher) UnmarshalText(text []byte) error

func (Cipher) Validate added in v0.6.0

func (this Cipher) Validate() error

type Ciphers added in v0.6.0

type Ciphers []Cipher

func (Ciphers) Contains added in v0.6.0

func (this Ciphers) Contains(v Cipher) bool

func (Ciphers) IsCumulative added in v0.6.0

func (this Ciphers) IsCumulative() bool

func (Ciphers) IsEmpty added in v0.6.0

func (this Ciphers) IsEmpty() bool

func (Ciphers) IsEqualTo added in v0.6.0

func (this Ciphers) IsEqualTo(other any) bool

func (Ciphers) IsZero added in v0.6.0

func (this Ciphers) IsZero() bool

func (Ciphers) MarshalText added in v0.6.0

func (this Ciphers) MarshalText() (text []byte, err error)

func (Ciphers) MarshalTexts added in v0.6.0

func (this Ciphers) MarshalTexts() (texts [][]byte, err error)

func (*Ciphers) Set added in v0.6.0

func (this *Ciphers) Set(text string) error

func (Ciphers) String added in v0.6.0

func (this Ciphers) String() string

func (*Ciphers) UnmarshalText added in v0.6.0

func (this *Ciphers) UnmarshalText(text []byte) error

func (Ciphers) Validate added in v0.6.0

func (this Ciphers) Validate() error

type KeyExchange added in v0.6.0

type KeyExchange uint8
const (
	KeyExchangeDh1Sha1 KeyExchange = iota
	KeyExchangeDh14Sha1
	KeyExchangeDh14Sha256
	KeyExchangeDh16Sha512
	KeyExchangeEcdh256
	KeyExchangeEcdh384
	KeyExchangeEcdh521
	KeyExchangeCurve25519Sha256LibSsh
	KeyExchangeCurve25519Sha256
	KeyExchangeDhgexSha1
	KeyExchangeDhgexSha256
	KeyExchangeMlkem768x25519xSha256
)

func (KeyExchange) IsEqualTo added in v0.6.0

func (this KeyExchange) IsEqualTo(other any) bool

func (KeyExchange) IsZero added in v0.6.0

func (this KeyExchange) IsZero() bool

func (KeyExchange) MarshalText added in v0.6.0

func (this KeyExchange) MarshalText() (text []byte, err error)

func (*KeyExchange) Set added in v0.6.0

func (this *KeyExchange) Set(text string) error

func (KeyExchange) String added in v0.6.0

func (this KeyExchange) String() string

func (*KeyExchange) UnmarshalText added in v0.6.0

func (this *KeyExchange) UnmarshalText(text []byte) error

func (KeyExchange) Validate added in v0.6.0

func (this KeyExchange) Validate() error

type KeyExchanges added in v0.6.0

type KeyExchanges []KeyExchange

func (KeyExchanges) Contains added in v0.6.0

func (this KeyExchanges) Contains(v KeyExchange) bool

func (KeyExchanges) IsCumulative added in v0.6.0

func (this KeyExchanges) IsCumulative() bool

func (KeyExchanges) IsEmpty added in v0.6.0

func (this KeyExchanges) IsEmpty() bool

func (KeyExchanges) IsEqualTo added in v0.6.0

func (this KeyExchanges) IsEqualTo(other any) bool

func (KeyExchanges) IsZero added in v0.6.0

func (this KeyExchanges) IsZero() bool

func (KeyExchanges) MarshalText added in v0.6.0

func (this KeyExchanges) MarshalText() (text []byte, err error)

func (KeyExchanges) MarshalTexts added in v0.6.0

func (this KeyExchanges) MarshalTexts() (texts [][]byte, err error)

func (*KeyExchanges) Set added in v0.6.0

func (this *KeyExchanges) Set(text string) error

func (KeyExchanges) String added in v0.6.0

func (this KeyExchanges) String() string

func (*KeyExchanges) UnmarshalText added in v0.6.0

func (this *KeyExchanges) UnmarshalText(text []byte) error

func (KeyExchanges) Validate added in v0.6.0

func (this KeyExchanges) Validate() error

type MessageAuthentication added in v0.6.0

type MessageAuthentication uint8
const (
	MessageAuthenticationHmacSha1 MessageAuthentication = iota
	MessageAuthenticationHmacSha1B96
	MessageAuthenticationHmacSha2B256
	MessageAuthenticationHmacSha2B512
	MessageAuthenticationHmacSha2B256Etm
	MessageAuthenticationHmacSha2B512Etm
)

func (MessageAuthentication) IsEqualTo added in v0.6.0

func (this MessageAuthentication) IsEqualTo(other any) bool

func (MessageAuthentication) IsZero added in v0.6.0

func (this MessageAuthentication) IsZero() bool

func (MessageAuthentication) MarshalText added in v0.6.0

func (this MessageAuthentication) MarshalText() (text []byte, err error)

func (*MessageAuthentication) Set added in v0.6.0

func (this *MessageAuthentication) Set(text string) error

func (MessageAuthentication) String added in v0.6.0

func (this MessageAuthentication) String() string

func (*MessageAuthentication) UnmarshalText added in v0.6.0

func (this *MessageAuthentication) UnmarshalText(text []byte) error

func (MessageAuthentication) Validate added in v0.6.0

func (this MessageAuthentication) Validate() error

type MessageAuthentications added in v0.6.0

type MessageAuthentications []MessageAuthentication

func (MessageAuthentications) Contains added in v0.6.0

func (MessageAuthentications) IsCumulative added in v0.6.0

func (this MessageAuthentications) IsCumulative() bool

func (MessageAuthentications) IsEmpty added in v0.6.0

func (this MessageAuthentications) IsEmpty() bool

func (MessageAuthentications) IsEqualTo added in v0.6.0

func (this MessageAuthentications) IsEqualTo(other any) bool

func (MessageAuthentications) IsZero added in v0.6.0

func (this MessageAuthentications) IsZero() bool

func (MessageAuthentications) MarshalText added in v0.6.0

func (this MessageAuthentications) MarshalText() (text []byte, err error)

func (MessageAuthentications) MarshalTexts added in v0.6.0

func (this MessageAuthentications) MarshalTexts() (texts [][]byte, err error)

func (*MessageAuthentications) Set added in v0.6.0

func (this *MessageAuthentications) Set(text string) error

func (MessageAuthentications) String added in v0.6.0

func (this MessageAuthentications) String() string

func (*MessageAuthentications) UnmarshalText added in v0.6.0

func (this *MessageAuthentications) UnmarshalText(text []byte) error

func (MessageAuthentications) Validate added in v0.6.0

func (this MessageAuthentications) Validate() error

Jump to

Keyboard shortcuts

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