ssh

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMethod

type AuthMethod string
const (
	AuthMethodPassword  AuthMethod = "PASSWORD"
	AuthMethodPublickey AuthMethod = "PUBLICKEY"
)

func NewAuthMethodFromString

func NewAuthMethodFromString(s string) (AuthMethod, error)

func (AuthMethod) Ptr

func (a AuthMethod) Ptr() *AuthMethod

type CipherAlgorithm

type CipherAlgorithm string
const (
	CipherAlgorithmChacha20Poly1305Openssh CipherAlgorithm = "CHACHA20POLY1305OPENSSH"
	CipherAlgorithmAes128Ctr               CipherAlgorithm = "AES128CTR"
	CipherAlgorithmAes192Ctr               CipherAlgorithm = "AES192CTR"
	CipherAlgorithmAes256Ctr               CipherAlgorithm = "AES256CTR"
	CipherAlgorithmAes128Gcmopenssh        CipherAlgorithm = "AES128GCMOPENSSH"
	CipherAlgorithmAes256Gcmopenssh        CipherAlgorithm = "AES256GCMOPENSSH"
	CipherAlgorithmAes128Cbc               CipherAlgorithm = "AES128CBC"
	CipherAlgorithmAes192Cbc               CipherAlgorithm = "AES192CBC"
	CipherAlgorithmAes256Cbc               CipherAlgorithm = "AES256CBC"
	CipherAlgorithmThreedescbc             CipherAlgorithm = "THREEDESCBC"
	CipherAlgorithmBlowfishcbc             CipherAlgorithm = "BLOWFISHCBC"
	CipherAlgorithmAes128Cbcopenssl        CipherAlgorithm = "AES128CBCOPENSSL"
	CipherAlgorithmAes128Gcm               CipherAlgorithm = "AES128GCM"
	CipherAlgorithmAes256Gcm               CipherAlgorithm = "AES256GCM"
)

func NewCipherAlgorithmFromString

func NewCipherAlgorithmFromString(s string) (CipherAlgorithm, error)

func (CipherAlgorithm) Ptr

type HostKeyAlgorithm

type HostKeyAlgorithm string
const (
	HostKeyAlgorithmSshdss            HostKeyAlgorithm = "SSHDSS"
	HostKeyAlgorithmSshrsa            HostKeyAlgorithm = "SSHRSA"
	HostKeyAlgorithmRsasha2256        HostKeyAlgorithm = "RSASHA2256"
	HostKeyAlgorithmRsasha2512        HostKeyAlgorithm = "RSASHA2512"
	HostKeyAlgorithmEcdsasha2Nistp256 HostKeyAlgorithm = "ECDSASHA2NISTP256"
	HostKeyAlgorithmEcdsasha2Nistp384 HostKeyAlgorithm = "ECDSASHA2NISTP384"
	HostKeyAlgorithmEcdsasha2Nistp521 HostKeyAlgorithm = "ECDSASHA2NISTP521"
	HostKeyAlgorithmSshed25519        HostKeyAlgorithm = "SSHED25519"
	HostKeyAlgorithmEcdsasha2Nistp224 HostKeyAlgorithm = "ECDSASHA2NISTP224"
	HostKeyAlgorithmEd25519Sha256     HostKeyAlgorithm = "ED25519SHA256"
)

func NewHostKeyAlgorithmFromString

func NewHostKeyAlgorithmFromString(s string) (HostKeyAlgorithm, error)

func (HostKeyAlgorithm) Ptr

type KeyExchangeAlgorithm

type KeyExchangeAlgorithm string
const (
	KeyExchangeAlgorithmSntrup761X25519Sha512Openssh     KeyExchangeAlgorithm = "SNTRUP761X25519SHA512OPENSSH"
	KeyExchangeAlgorithmCurve25519Sha256                 KeyExchangeAlgorithm = "CURVE25519SHA256"
	KeyExchangeAlgorithmCurve25519Sha256Libssh           KeyExchangeAlgorithm = "CURVE25519SHA256LIBSSH"
	KeyExchangeAlgorithmEcdhsha2Nistp256                 KeyExchangeAlgorithm = "ECDHSHA2NISTP256"
	KeyExchangeAlgorithmEcdhsha2Nistp384                 KeyExchangeAlgorithm = "ECDHSHA2NISTP384"
	KeyExchangeAlgorithmEcdhsha2Nistp521                 KeyExchangeAlgorithm = "ECDHSHA2NISTP521"
	KeyExchangeAlgorithmEcdhsha2Nistp224                 KeyExchangeAlgorithm = "ECDHSHA2NISTP224"
	KeyExchangeAlgorithmDiffiehellmangroupexchangesha256 KeyExchangeAlgorithm = "DIFFIEHELLMANGROUPEXCHANGESHA256"
	KeyExchangeAlgorithmDiffiehellmangroupexchangesha512 KeyExchangeAlgorithm = "DIFFIEHELLMANGROUPEXCHANGESHA512"
	KeyExchangeAlgorithmDiffiehellmangroup16Sha512       KeyExchangeAlgorithm = "DIFFIEHELLMANGROUP16SHA512"
	KeyExchangeAlgorithmDiffiehellmangroup18Sha512       KeyExchangeAlgorithm = "DIFFIEHELLMANGROUP18SHA512"
	KeyExchangeAlgorithmDiffiehellmangroup14Sha256       KeyExchangeAlgorithm = "DIFFIEHELLMANGROUP14SHA256"
	KeyExchangeAlgorithmDiffiehellmangroup14Sha512       KeyExchangeAlgorithm = "DIFFIEHELLMANGROUP14SHA512"
	KeyExchangeAlgorithmDiffiehellmangroup1Sha1          KeyExchangeAlgorithm = "DIFFIEHELLMANGROUP1SHA1"
	KeyExchangeAlgorithmDiffiehellmangroup1Sha256        KeyExchangeAlgorithm = "DIFFIEHELLMANGROUP1SHA256"
	KeyExchangeAlgorithmKexstrictsv00Openssh             KeyExchangeAlgorithm = "KEXSTRICTSV00OPENSSH"
	KeyExchangeAlgorithmX25519Sha256Libssh               KeyExchangeAlgorithm = "X25519SHA256LIBSSH"
	KeyExchangeAlgorithmX448Sha512Openssh                KeyExchangeAlgorithm = "X448SHA512OPENSSH"
	KeyExchangeAlgorithmCurve25519Sha512Openssh          KeyExchangeAlgorithm = "CURVE25519SHA512OPENSSH"
)

func NewKeyExchangeAlgorithmFromString

func NewKeyExchangeAlgorithmFromString(s string) (KeyExchangeAlgorithm, error)

func (KeyExchangeAlgorithm) Ptr

type MacAlgorithm

type MacAlgorithm string
const (
	MacAlgorithmUmac1                 MacAlgorithm = "UMAC1"
	MacAlgorithmUmac64Etmopenssh      MacAlgorithm = "UMAC64ETMOPENSSH"
	MacAlgorithmUmac128Etmopenssh     MacAlgorithm = "UMAC128ETMOPENSSH"
	MacAlgorithmHmacsha2256Etmopenssh MacAlgorithm = "HMACSHA2256ETMOPENSSH"
	MacAlgorithmHmacsha2512Etmopenssh MacAlgorithm = "HMACSHA2512ETMOPENSSH"
	MacAlgorithmHmacsha1Etmopenssh    MacAlgorithm = "HMACSHA1ETMOPENSSH"
	MacAlgorithmUmac64Openssh         MacAlgorithm = "UMAC64OPENSSH"
	MacAlgorithmUmac128Openssh        MacAlgorithm = "UMAC128OPENSSH"
	MacAlgorithmHmacsha2256           MacAlgorithm = "HMACSHA2256"
	MacAlgorithmHmacsha2512           MacAlgorithm = "HMACSHA2512"
	MacAlgorithmHmacsha1              MacAlgorithm = "HMACSHA1"
	MacAlgorithmHmacmd5               MacAlgorithm = "HMACMD5"
	MacAlgorithmHmacripemd160         MacAlgorithm = "HMACRIPEMD160"
	MacAlgorithmHmacsha3256           MacAlgorithm = "HMACSHA3256"
	MacAlgorithmHmacsha3512           MacAlgorithm = "HMACSHA3512"
)

func NewMacAlgorithmFromString

func NewMacAlgorithmFromString(s string) (MacAlgorithm, error)

func (MacAlgorithm) Ptr

func (m MacAlgorithm) Ptr() *MacAlgorithm

type SshEnumerateDetails

type SshEnumerateDetails struct {
	Target           string                 `json:"target" url:"target"`
	Version          *string                `json:"version,omitempty" url:"version,omitempty"`
	AuthMethods      []AuthMethod           `json:"authMethods,omitempty" url:"authMethods,omitempty"`
	KeyExchangeAlgos []KeyExchangeAlgorithm `json:"keyExchangeAlgos,omitempty" url:"keyExchangeAlgos,omitempty"`
	HostKeyAlgos     []HostKeyAlgorithm     `json:"hostKeyAlgos,omitempty" url:"hostKeyAlgos,omitempty"`
	Ciphers          []CipherAlgorithm      `json:"ciphers,omitempty" url:"ciphers,omitempty"`
	Macs             []MacAlgorithm         `json:"macs,omitempty" url:"macs,omitempty"`
	RawAscii         *string                `json:"rawASCII,omitempty" url:"rawASCII,omitempty"`
	// contains filtered or unexported fields
}

func (*SshEnumerateDetails) GetAuthMethods added in v0.0.25

func (s *SshEnumerateDetails) GetAuthMethods() []AuthMethod

func (*SshEnumerateDetails) GetCiphers added in v0.0.25

func (s *SshEnumerateDetails) GetCiphers() []CipherAlgorithm

func (*SshEnumerateDetails) GetExtraProperties

func (s *SshEnumerateDetails) GetExtraProperties() map[string]interface{}

func (*SshEnumerateDetails) GetHostKeyAlgos added in v0.0.25

func (s *SshEnumerateDetails) GetHostKeyAlgos() []HostKeyAlgorithm

func (*SshEnumerateDetails) GetKeyExchangeAlgos added in v0.0.25

func (s *SshEnumerateDetails) GetKeyExchangeAlgos() []KeyExchangeAlgorithm

func (*SshEnumerateDetails) GetMacs added in v0.0.25

func (s *SshEnumerateDetails) GetMacs() []MacAlgorithm

func (*SshEnumerateDetails) GetRawAscii added in v0.0.25

func (s *SshEnumerateDetails) GetRawAscii() *string

func (*SshEnumerateDetails) GetTarget added in v0.0.25

func (s *SshEnumerateDetails) GetTarget() string

func (*SshEnumerateDetails) GetVersion added in v0.0.25

func (s *SshEnumerateDetails) GetVersion() *string

func (*SshEnumerateDetails) String

func (s *SshEnumerateDetails) String() string

func (*SshEnumerateDetails) UnmarshalJSON

func (s *SshEnumerateDetails) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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