Exceptions

exception ssh2.exceptions.AgentAuthenticationError

Bases: ssh2.exceptions.AuthenticationError

Raised on SSH Agent authentication errors

exception ssh2.exceptions.AgentConnectionError

Bases: ssh2.exceptions.AgentError

Raised on SSH Agent connection errors

exception ssh2.exceptions.AgentError

Bases: ssh2.exceptions.SSH2Error

Base class for all SSH Agent errors

exception ssh2.exceptions.AgentGetIdentityError

Bases: ssh2.exceptions.AgentError

Raised on SSH Agent get identity errors

exception ssh2.exceptions.AgentListIdentitiesError

Bases: ssh2.exceptions.AgentError

Raised on SSH Agent list identities errors

exception ssh2.exceptions.AgentProtocolError

Bases: ssh2.exceptions.SSH2Error

Raised on SSH agent protocol errors

exception ssh2.exceptions.AllocError

Bases: ssh2.exceptions.SSH2Error

Raised on allocation error

exception ssh2.exceptions.AuthenticationError

Bases: ssh2.exceptions.SSH2Error

Base class for all authentication errors

exception ssh2.exceptions.BadSocketError

Bases: ssh2.exceptions.SSH2Error

Raised on use of bad socket errors

exception ssh2.exceptions.BadUseError

Bases: ssh2.exceptions.SSH2Error

Raised on API bad use errors

exception ssh2.exceptions.BannerRecvError

Bases: ssh2.exceptions.SessionError

Raised on errors receiving banner

exception ssh2.exceptions.BannerSendError

Bases: ssh2.exceptions.SessionError

Raised on errors sending banner

exception ssh2.exceptions.BufferTooSmallError

Bases: ssh2.exceptions.SSH2Error

Raised on buffer too small errors

exception ssh2.exceptions.ChannelClosedError

Bases: ssh2.exceptions.ChannelError

Raised on channel closed errors

exception ssh2.exceptions.ChannelEOFSentError

Bases: ssh2.exceptions.ChannelError

Raised on channel EOF errors

exception ssh2.exceptions.ChannelError

Bases: ssh2.exceptions.SSH2Error

Base class for all channel errors

exception ssh2.exceptions.ChannelFailure

Bases: ssh2.exceptions.ChannelError

Raised on channel failures

exception ssh2.exceptions.ChannelOutOfOrderError

Bases: ssh2.exceptions.ChannelError

Raised on channel commands out of order errors

exception ssh2.exceptions.ChannelPacketExceeded

Bases: ssh2.exceptions.ChannelError

Raised on channel max packet length exceeded errors

exception ssh2.exceptions.ChannelRequestDenied

Bases: ssh2.exceptions.ChannelError

Raised on channel request denied errors

exception ssh2.exceptions.ChannelUnknownError

Bases: ssh2.exceptions.ChannelError

Raised on unknown channel errors

exception ssh2.exceptions.ChannelWindowExceeded

Bases: ssh2.exceptions.ChannelError

Raised on channel window exceeded errors

exception ssh2.exceptions.ChannelWindowFullError

Bases: ssh2.exceptions.SSH2Error

Raised on channel window full error

exception ssh2.exceptions.CompressError

Bases: ssh2.exceptions.SessionError

Raised on compression errors

exception ssh2.exceptions.DecryptError

Bases: ssh2.exceptions.SessionError

Raised on decryption errors

exception ssh2.exceptions.EncryptError

Bases: ssh2.exceptions.SessionError

Raised on encryption errors

exception ssh2.exceptions.FileError

Bases: ssh2.exceptions.SSH2Error

Raised on file errors

exception ssh2.exceptions.HostkeyInitError

Bases: ssh2.exceptions.SessionError

Raised on errors initialiasing host key

exception ssh2.exceptions.HostkeySignError

Bases: ssh2.exceptions.SessionError

Raised on errors signing host key

exception ssh2.exceptions.InvalidMACError

Bases: ssh2.exceptions.SSH2Error

Raised on invalid MAC

exception ssh2.exceptions.InvalidPollTypeError

Bases: ssh2.exceptions.SSH2Error

Raised on invalid poll type errors

exception ssh2.exceptions.InvalidRequestError

Bases: ssh2.exceptions.SSH2Error

Raised on invalid request errors

exception ssh2.exceptions.KexFailureError

Bases: ssh2.exceptions.SSH2Error

Raised on KEX failure

exception ssh2.exceptions.KeyExchangeError

Bases: ssh2.exceptions.SessionError

Raised on errors exchanging keys

exception ssh2.exceptions.KeyfileAuthFailedError

Bases: ssh2.exceptions.SSH2Error

Raised on key file authentication error

exception ssh2.exceptions.KnownHostAddError

Bases: ssh2.exceptions.KnownHostError

Raised on errors adding known host entries

exception ssh2.exceptions.KnownHostCheckError

Bases: ssh2.exceptions.KnownHostError

Raised on any known host check errors

exception ssh2.exceptions.KnownHostCheckFailure

Bases: ssh2.exceptions.KnownHostCheckError

Raised on something preventing known host check to be made

exception ssh2.exceptions.KnownHostCheckMisMatchError

Bases: ssh2.exceptions.KnownHostCheckError

Raised on keys do not match for known host

exception ssh2.exceptions.KnownHostCheckNotFoundError

Bases: ssh2.exceptions.KnownHostCheckError

Raised on no match for known host check

exception ssh2.exceptions.KnownHostDeleteError

Bases: ssh2.exceptions.KnownHostError

Raised on errors deleting known host entry

exception ssh2.exceptions.KnownHostError

Bases: ssh2.exceptions.SSH2Error

Base class for KnownHost errors

exception ssh2.exceptions.KnownHostGetError

Bases: ssh2.exceptions.KnownHostError

Raised on errors retrieving known host entries

exception ssh2.exceptions.KnownHostReadFileError

Bases: ssh2.exceptions.KnownHostError

Raised on errors reading from known hosts file

exception ssh2.exceptions.KnownHostReadLineError

Bases: ssh2.exceptions.KnownHostError

Raised on errors reading line from known hosts file

exception ssh2.exceptions.KnownHostWriteFileError

Bases: ssh2.exceptions.KnownHostError

Raised on errors writing to known hosts file

exception ssh2.exceptions.KnownHostWriteLineError

Bases: ssh2.exceptions.KnownHostError

Raised on errors writing line to known hosts file

exception ssh2.exceptions.MethodNoneError

Bases: ssh2.exceptions.SSH2Error

Raised on invalid method errors

exception ssh2.exceptions.MethodNotSupported

Bases: ssh2.exceptions.SessionError

Raised on authentication method not supported errors

exception ssh2.exceptions.OutOfBoundaryError

Bases: ssh2.exceptions.SSH2Error

Raised on out of boundary errors

exception ssh2.exceptions.PasswordExpiredError

Bases: ssh2.exceptions.AuthenticationError

Raised on password expired errors

exception ssh2.exceptions.ProtocolError

Bases: ssh2.exceptions.SSH2Error

Raised on protocol errors

exception ssh2.exceptions.PublicKeyError

Bases: ssh2.exceptions.SSH2Error

Base class for all public key protocol errors

exception ssh2.exceptions.PublicKeyInitError

Bases: ssh2.exceptions.PublicKeyError

Raised on errors initialising public key system

exception ssh2.exceptions.PublicKeyProtocolError

Bases: ssh2.exceptions.SSH2Error

Raised on public key protocol errors

exception ssh2.exceptions.PublickeyUnverifiedError

Bases: ssh2.exceptions.AuthenticationError

Raised on public key verification errors

exception ssh2.exceptions.RequestDeniedError

Bases: ssh2.exceptions.SessionError

Raised on request denied errors

exception ssh2.exceptions.SCPProtocolError

Bases: ssh2.exceptions.SessionError

Raised on SCP protocol errors

exception ssh2.exceptions.SFTPError

Bases: ssh2.exceptions.SSH2Error

Base class for SFTP errors

exception ssh2.exceptions.SFTPHandleError

Bases: ssh2.exceptions.SFTPError

Raised on SFTP handle errors

exception ssh2.exceptions.SFTPProtocolError

Bases: ssh2.exceptions.SFTPError

Raised on SFTP protocol errors

exception ssh2.exceptions.SSH2Error

Bases: Exception

Base class for all ssh2-python errors

exception ssh2.exceptions.SessionError

Bases: ssh2.exceptions.SSH2Error

Base class for all session errors

exception ssh2.exceptions.SessionHandshakeError

Bases: ssh2.exceptions.SessionError

Raised on session handshake errors

exception ssh2.exceptions.SessionHostKeyError

Bases: ssh2.exceptions.SessionError

Raised on errors getting server host key

exception ssh2.exceptions.SessionStartupError

Bases: ssh2.exceptions.SessionError

Raised on session startup errors

exception ssh2.exceptions.SocketDisconnectError

Bases: ssh2.exceptions.SSH2Error

Raised on socket disconnection errors

exception ssh2.exceptions.SocketRecvError

Bases: ssh2.exceptions.SSH2Error

Raised on socket receive errors

exception ssh2.exceptions.SocketSendError

Bases: ssh2.exceptions.SSH2Error

Raised on socket send errors

exception ssh2.exceptions.SocketTimeout

Bases: ssh2.exceptions.SessionError

Raised on socket timeouts

exception ssh2.exceptions.Timeout

Bases: ssh2.exceptions.SessionError

Raised on timeouts

exception ssh2.exceptions.UnknownError

Bases: ssh2.exceptions.SSH2Error

Raised on non-specific or unknown errors

exception ssh2.exceptions.ZlibError

Bases: ssh2.exceptions.SessionError

Raised on zlib errors