Versions in this module Expand all Collapse all v0 v0.10.0 Nov 18, 2026 v0.9.0 Nov 17, 2026 v0.8.0 Nov 10, 2026 Changes in this version type PublicKey + func (k *PublicKey) Crypto() crypto.PublicKey v0.7.0 Nov 10, 2026 v0.6.1 Nov 9, 2026 v0.6.0 Nov 9, 2026 v0.5.1 Nov 8, 2026 v0.5.0 Nov 8, 2026 v0.4.1 Nov 3, 2026 v0.4.0 Oct 22, 2026 v0.3.0 Oct 18, 2026 v0.2.0 Oct 17, 2026 v0.1.1 Oct 14, 2026 v0.1.0 Oct 13, 2026 Changes in this version + const MaxHostKeyBlob + const MaxIdentLine + const MaxName + const MaxNames + const MaxPacket + const MaxPreambleBytes + const MaxPreambleLines + const MaxSignatureBlob + const MsgDebug + const MsgDisconnect + const MsgIgnore + const MsgKexInit + const MsgKexInit30 + const MsgKexReply31 + const MsgNewKeys + const MsgUnimpl + var ErrProtocol = errors.New("ssh protocol error") + func Clean(s string, max int) string + func Fingerprint(blob []byte) string + func MPIntBytes(v *big.Int) []byte + func Packet(payload []byte, rnd io.Reader) ([]byte, error) + func ReadPacket(r io.Reader) ([]byte, error) + type Builder struct + B []byte + func (w *Builder) Bool(v bool) + func (w *Builder) Byte(v byte) + func (w *Builder) MPInt(v *big.Int) + func (w *Builder) NameList(names []string) + func (w *Builder) String(v []byte) + func (w *Builder) Uint32(v uint32) + type Certificate struct + CAFingerprint string + CAType string + CertType uint32 + Forever bool + KeyID string + KeyType string + Principals []string + Serial uint64 + ValidAfter time.Time + ValidBefore time.Time + type Disconnect struct + Description string + Reason uint32 + func ParseDisconnect(p []byte) Disconnect + type Identification struct + Comment string + Preamble int + ProtoVersion string + Raw string + Software string + func ParseIdentification(line string) (Identification, error) + func ReadIdentification(r *bufio.Reader) (Identification, []string, error) + func (id Identification) SSH2() bool + type KexInit struct + CipherC2S []string + CipherS2C []string + CompS2C []string + CompressionC2S []string + Cookie [16]byte + FirstKexFollows bool + HostKey []string + Kex []string + LanguageC2S []string + LanguageS2C []string + MACC2S []string + MACS2C []string + func ParseKexInit(p []byte) (*KexInit, error) + func (k *KexInit) Marshal() []byte + type KexReply struct + HostKey []byte + Signature []byte + Value []byte + func ParseKexReply(p []byte) (*KexReply, error) + type PublicKey struct + Algorithm string + Bits int + Cert *Certificate + Curve string + Fingerprint string + PQ bool + Type string + func ParsePublicKey(blob []byte) (*PublicKey, error) + func (k *PublicKey) Blob() []byte + func (k *PublicKey) Verify(sigAlg string, h, sigBlob []byte) Verified + type Reader struct + func NewReader(b []byte) *Reader + func (r *Reader) Bool() bool + func (r *Reader) Byte() byte + func (r *Reader) Bytes(n int) []byte + func (r *Reader) Err() error + func (r *Reader) MPInt() *big.Int + func (r *Reader) NameList() []string + func (r *Reader) Rest() []byte + func (r *Reader) String() []byte + func (r *Reader) Uint32() uint32 + func (r *Reader) Uint64() uint64 + type Verified struct + Note string + OK bool