pub enum Error {
Show 39 variants
CouldNotReadKey,
KexInit,
UnknownAlgo,
NoCommonKexAlgo,
NoCommonKeyAlgo,
NoCommonCipher,
NoCommonCompression,
NoCommonMac,
Version,
Kex,
PacketAuth,
Inconsistent,
NotAuthenticated,
IndexOutOfBounds,
UnknownKey,
WrongServerSig,
WrongChannel,
ChannelOpenFailure(ChannelOpenFailure),
Disconnect,
NoHomeDir,
KeyChanged {
line: usize,
},
HUP,
ConnectionTimeout,
KeepaliveTimeout,
InactivityTimeout,
NoAuthMethod,
SendError,
Pending,
DecryptionError,
RequestDenied,
Keys(Error),
IO(Error),
Utf8(Utf8Error),
Compress(CompressError),
Decompress(DecompressError),
Join(JoinError),
Openssl(ErrorStack),
Elapsed(Elapsed),
StrictKeyExchangeViolation {
message_type: u8,
sequence_number: usize,
},
}
Variants§
CouldNotReadKey
The key file could not be parsed.
KexInit
Unspecified problem with the beginning of key exchange.
UnknownAlgo
Unknown algorithm name.
NoCommonKexAlgo
No common key exchange algorithm.
NoCommonKeyAlgo
No common signature algorithm.
NoCommonCipher
No common cipher.
NoCommonCompression
No common compression algorithm.
NoCommonMac
No common MAC algorithm.
Version
Invalid SSH version string.
Kex
Error during key exchange.
PacketAuth
Invalid packet authentication code.
Inconsistent
The protocol is in an inconsistent state.
NotAuthenticated
The client is not yet authenticated.
IndexOutOfBounds
Index out of bounds.
UnknownKey
Unknown server key.
WrongServerSig
The server provided a wrong signature.
WrongChannel
Message received/sent on unopened channel.
ChannelOpenFailure(ChannelOpenFailure)
Server refused to open a channel.
Disconnect
Disconnected
NoHomeDir
No home directory found when trying to learn new host key.
KeyChanged
Remote key changed, this could mean a man-in-the-middle attack is being performed on the connection.
HUP
Connection closed by the remote side.
ConnectionTimeout
Connection timeout.
KeepaliveTimeout
Keepalive timeout.
InactivityTimeout
Inactivity timeout.
NoAuthMethod
Missing authentication method.