Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHExchange ¶
type SSHExchange struct { Server string Port string ProtocolVersion string Cookie [16]byte //random cookie KEXAlgorithms []string //key exchange algorithms ServerHostKeyAlgos []string //server host ket algorithms EncAlgosC2S []string //encryption algorithms client to server EncAlgosS2C []string //encryption algorithms server to client MACAlgosC2S []string //MAC algorithms client to server MACAlgosS2C []string //MAC algorithms server to client CompAlgosC2S []string //Compression algorithms client to server CompAlgosS2C []string //Compression algorithms server to client LanguagesC2S []string //Languages client to server LanguagesS2C []string //Languages server to client Fail bool //if the inspection fails FailReason string //possible error information in the event of a failure }
SSHExchange contains parameters exchanged between server and client during the connection setup and key exchange algorithm negotiation step See https://tools.ietf.org/html/rfc4253
func Inspect ¶
func Inspect(host, port string) (data SSHExchange)
Inspect returns an `SSHExchange` on the specified `host` and `port`. If the inspection fails `SSHExchange.Fail` is set to true, and a possible reason for failure is provided in `SSHExchange.FailReason`
Click to show internal directories.
Click to hide internal directories.