Versions in this module Expand all Collapse all v0 v0.0.1 May 17, 2015 Changes in this version + const COMPRESSION_NONE + const COMPRESSION_ZLIB + const COMPRESSION_ZLIB_OPENSSH + const ENCRPTION_ARCFOUR_256 + const ENCRYPTION_3DES_CBC + const ENCRYPTION_AES_128_CBC + const ENCRYPTION_AES_128_CTR + const ENCRYPTION_AES_128_GCM_OPENSSH + const ENCRYPTION_AES_192_CBC + const ENCRYPTION_AES_192_CTR + const ENCRYPTION_AES_256_CBC + const ENCRYPTION_AES_256_CTR + const ENCRYPTION_AES_256_GCM_OPENSSH + const ENCRYPTION_ARCFOUR + const ENCRYPTION_ARCFOUR_128 + const ENCRYPTION_BLOWFISH_CBC + const ENCRYPTION_CAST_128_CBC + const ENCRYPTION_CHACHA_20_POLY_1305_OPENSSH + const ENCRYPTION_RIJNDAEL_CBC_LYSATOR + const HOST_KEY_DSS + const HOST_KEY_DSS_CERT_V00_OPENSSH + const HOST_KEY_DSS_CERT_V01 + const HOST_KEY_ECDSA_SHA2_NISTP256 + const HOST_KEY_ECDSA_SHA2_NISTP256_CERT_V01_OPENSSH + const HOST_KEY_ECDSA_SHA2_NISTP384 + const HOST_KEY_ECDSA_SHA2_NISTP384_CERT_V01_OPENSSH + const HOST_KEY_ECDSA_SHA2_NISTP521 + const HOST_KEY_ECDSA_SHA2_NISTP521_CERT_V01_OPENSSH + const HOST_KEY_ED_25519 + const HOST_KEY_ED_25519_CERT_V01_OPENSSH + const HOST_KEY_RSA + const HOST_KEY_RSA_CERT_V00_OPENSSH + const HOST_KEY_RSA_CERT_V01 + const KEX_CURVE_25519_SHA256_OPENSSH + const KEX_DH_GROUP14_SHA1 + const KEX_DH_GROUP1_SHA1 + const KEX_DH_SHA1 + const KEX_DH_SHA256 + const KEX_ECDH_SHA2_NISTP256 + const KEX_ECDH_SHA2_NISTP384 + const KEX_ECDH_SHA2_NISTP521 + const MAC_HMAC_MD5 + const MAC_HMAC_MD5_96 + const MAC_HMAC_MD5_96_ETM + const MAC_HMAC_MD5_ETM_OPENSSH + const MAC_HMAC_RIPEMD_160 + const MAC_HMAC_RIPEMD_160_ETM_OPENSSH + const MAC_HMAC_RIPEMD_160_OPENSSH + const MAC_HMAC_SHA1 + const MAC_HMAC_SHA1_96 + const MAC_HMAC_SHA1_96_ETM_OPENSSH + const MAC_HMAC_SHA1_ETM_OPENSSH + const MAC_HMAC_SHA2_256 + const MAC_HMAC_SHA2_256_ETM_OPENSSH + const MAC_HMAC_SHA2_512 + const MAC_HMAC_SHA2_512_ETM_OPENSSH + const MAC_UMAC_128_ETM_OPENSSH + const MAC_UMAC_128_OPENSSH + const MAC_UMAC_64_ETM_OPENSSH + const MAC_UMAC_64_OPENSSH + const SSH_MSG_KEXDH_INIT + const SSH_MSG_KEXDH_REPLY + const SSH_MSG_KEXINIT + const SSH_MSG_KEX_DH_GEX_GROUP + const SSH_MSG_KEX_DH_GEX_INIT + const SSH_MSG_KEX_DH_GEX_REPLY + const SSH_MSG_KEX_DH_GEX_REQUEST_OLD + const SSH_MSG_KEY_DH_GEX_REQUEST + var KnownCompressionAlgorithmNames = []string + var KnownEncryptionAlgorithmNames = []string + var KnownHostKeyAlgorithmNames = []string + var KnownKexAlgorithmNames = []string + var KnownMACAlgorithmNames = []string + var OpenSSH_6_6p1 = ClientImplementation + type AlgorithmSelection struct + HostKeyAlgorithm string + KexAlgorithm string + type ClientImplementation struct + func ClientImplementationByName(name string) (c *ClientImplementation, ok bool) + func (c *ClientImplementation) HostKeyAlgorithms() NameList + func (c *ClientImplementation) KexAlgorithms() NameList + type Config struct + CompressionClientToServer NameList + CompressionServerToClient NameList + EncryptionClientToServer NameList + EncryptionServerToClient NameList + HostKeyAlgorithms NameList + KexAlgorithms NameList + MACClientToServer NameList + MACServerToclient NameList + Random io.Reader + type Conn struct + func Client(c net.Conn, config *Config) *Conn + func (c *Conn) ClientHandshake() error + func (c *Conn) HandshakeLog() *HandshakeLog + type Cookie [16]byte + func (c *Cookie) MarshalJSON() ([]byte, error) + func (c *Cookie) UnmarshalJSON(b []byte) error + type DHParams struct + Generator *big.Int + Prime *big.Int + func (p *DHParams) MarshalJSON() ([]byte, error) + func (p *DHParams) UnmarshalJSON(b []byte) error + type HandshakeLog struct + Algorithms *AlgorithmSelection + ClientKexExchangeInit *KeyExchangeInit + ClientProtocol *ProtocolAgreement + DHInit *KeyExchangeDHInit + DHReply *KeyExchangeDHInitReply + KexDHGroupInit *KeyExchangeDHGroupInit + KexDHGroupParams *KeyExchangeDHGroupParameters + KexDHGroupReply *KeyExchangeDHGroupReply + KexDHGroupRequest *KeyExchangeDHGroupRequest + ServerKeyExchangeInit *KeyExchangeInit + ServerProtocol *ProtocolAgreement + type KeyExchangeDHGroupInit struct + func (gex *KeyExchangeDHGroupInit) MsgType() byte + type KeyExchangeDHGroupParameters struct + Generator mpint + Prime mpint + func (gex *KeyExchangeDHGroupParameters) Marshal() ([]byte, error) + func (gex *KeyExchangeDHGroupParameters) MsgType() byte + func (gex *KeyExchangeDHGroupParameters) Unmarshal(raw []byte) (ok bool) + type KeyExchangeDHGroupReply struct + func (gex *KeyExchangeDHGroupReply) MsgType() byte + type KeyExchangeDHGroupRequest struct + Max uint32 + Min uint32 + Preferred uint32 + func (gex *KeyExchangeDHGroupRequest) Marshal() ([]byte, error) + func (gex *KeyExchangeDHGroupRequest) MsgType() byte + func (gex *KeyExchangeDHGroupRequest) Unmarshal([]byte) bool + type KeyExchangeDHInit struct + E mpint + func (dhi *KeyExchangeDHInit) Marshal() ([]byte, error) + func (dhi *KeyExchangeDHInit) MsgType() byte + func (dhi *KeyExchangeDHInit) Unmarshal(raw []byte) bool + type KeyExchangeDHInitReply struct + F mpint + K_S []byte + Signature []byte + func (dhr *KeyExchangeDHInitReply) Marshal() ([]byte, error) + func (dhr *KeyExchangeDHInitReply) MsgType() byte + func (dhr *KeyExchangeDHInitReply) Unmarshal(raw []byte) bool + type KeyExchangeInit struct + CompressionClientToServer NameList + CompressionServerToClient NameList + Cookie Cookie + EncryptionClientToServer NameList + EncryptionServerToClient NameList + FirstKexPacketFollows bool + HostKeyAlgorithms NameList + KexAlgorithms NameList + LanguageClientToServer NameList + LanguageServerToClient NameList + MACClientToServer NameList + MACServerToClient NameList + Zero uint32 + func GenerateKeyExchangeInit(c *Config) (*KeyExchangeInit, error) + func (kxi *KeyExchangeInit) Marshal() ([]byte, error) + func (kxi *KeyExchangeInit) MsgType() byte + func (kxi *KeyExchangeInit) Unmarshal(raw []byte) bool + type NameList []string + func (n *NameList) MarshalInto(dest []byte) ([]byte, error) + func (n *NameList) MarshaledLength() int + func (n *NameList) Unmarshal(raw []byte) ([]byte, bool) + type ProtocolAgreement struct + Comments string + ProtocolVersion string + RawBanner string + SoftwareVersion string + func MakeZGrabProtocolAgreement() *ProtocolAgreement + func (h *ProtocolAgreement) Marshal() []byte + func (h *ProtocolAgreement) ParseRawBanner() + type ProtocolVersion string