a °…bOã@sÎddlZGdd„deƒZGdd„deƒZGdd„deƒZGdd „d eƒZGd d „d eƒZGd d „d eƒZGdd„deƒZGdd„deƒZ Gdd„deƒZ Gdd„dej ƒZ Gdd„deƒZ Gdd„deƒZdS)éNc@seZdZdZdS)Ú SSHExceptionzT Exception raised by failures in SSH2 protocol negotiation or logic errors. N©Ú__name__Ú __module__Ú __qualname__Ú__doc__©rrú=/tmp/pip-target-98j97qn4/lib/python/paramiko/ssh_exception.pyrsrc@seZdZdZdS)ÚAuthenticationExceptionzÒ Exception raised when authentication failed for some reason. It may be possible to retry with different credentials. (Other classes specify more specific reasons.) .. versionadded:: 1.6 Nrrrrr r sr c@seZdZdZdS)ÚPasswordRequiredExceptionzR Exception raised when a password is needed to unlock a private key file. Nrrrrr r *sr c@s$eZdZdZgZdd„Zdd„ZdS)ÚBadAuthenticationTypezÉ Exception raised when an authentication type (like password) is used, but the server isn't allowing that type. (It may only allow public-key, for example.) .. versionadded:: 1.1 cCst |||¡||_||_dS©N)r Ú__init__Ú explanationÚ allowed_types)ÚselfrÚtypesrrr r>szBadAuthenticationType.__init__cCsd |j|j¡S)Nz{}; allowed types: {!r})Úformatrr©rrrr Ú__str__EsÿzBadAuthenticationType.__str__N©rrrrrrrrrrr r 2sr c@s$eZdZdZgZdd„Zdd„ZdS)ÚPartialAuthenticationzM An internal exception thrown in the case of partial authentication. cCst ||¡||_dSr )r rr)rrrrr rRs zPartialAuthentication.__init__cCs d |j¡S)Nz+Partial authentication; allowed types: {!r})rrrrrr rVsÿzPartialAuthentication.__str__Nrrrrr rKsrc@s eZdZdZdd„Zdd„ZdS)ÚChannelExceptionz¡ Exception raised when an attempt to open a new `.Channel` fails. :param int code: the error code returned by the server .. versionadded:: 1.6 cCst |||¡||_||_dSr )rrÚcodeÚtext)rrrrrr reszChannelException.__init__cCsd |j|j¡S)NzChannelException({!r}, {!r}))rrrrrrr rjszChannelException.__str__N©rrrrrrrrrr r\src@s eZdZdZdd„Zdd„ZdS)ÚBadHostKeyExceptiona The host key given by the SSH server did not match what we were expecting. :param str hostname: the hostname of the SSH server :param PKey got_key: the host key presented by the server :param PKey expected_key: the host key expected .. versionadded:: 1.6 cCs&t ||||¡||_||_||_dSr )rrÚhostnameÚkeyÚ expected_key)rrZgot_keyrrrr ryszBadHostKeyException.__init__cCs d}| |j|j ¡|j ¡¡S)Nz@Host key for server '{}' does not match: got '{}', expected '{}')rrrZ get_base64r)rÚmsgrrr rsÿýzBadHostKeyException.__str__Nrrrrr rns rc@seZdZdZdS)ÚIncompatiblePeerzk A disagreement arose regarding an algorithm required for key exchange. .. versionadded:: 2.9 Nrrrrr r!Šs r!c@s eZdZdZdd„Zdd„ZdS)ÚProxyCommandFailurezâ The "ProxyCommand" found in the .ssh/config file returned an error. :param str command: The command line that is generating this exception. :param str error: The error captured from the proxy command output. cCst |||¡||_||_dSr )rrÚcommandÚerror)rr#r$rrr r¡szProxyCommandFailure.__init__cCsd |j|j¡S)Nz3ProxyCommand("{}") returned nonzero exit status: {})rr#r$rrrr r¦sÿzProxyCommandFailure.__str__Nrrrrr r"™sr"cs(eZdZdZ‡fdd„Zdd„Z‡ZS)ÚNoValidConnectionsErroraú Multiple connection attempts were made and no families succeeded. This exception class wraps multiple "real" underlying connection errors, all of which represent failed connection attempts. Because these errors are not guaranteed to all be of the same error type (i.e. different errno, `socket.error` subclass, message, etc) we expose a single unified error message and a ``None`` errno so that instances of this class match most normal handling of `socket.error` objects. To see the wrapped exception objects, access the ``errors`` attribute. ``errors`` is a dict whose keys are address tuples (e.g. ``('127.0.0.1', 22)``) and whose values are the exception encountered trying to connect to that address. It is implied/assumed that all the errors given to a single instance of this class are from connecting to the same hostname + port (and thus that the differences are in the resolution of the hostname - e.g. IPv4 vs v6). .. versionadded:: 1.16 cspt| ¡ƒ}d dd„|dd…Dƒ¡}|dd}|r>d}nd}tt|ƒ d| |dd ||¡¡||_dS) zl :param dict errors: The errors dict to store, as described by class docstring. z, cSsg|] }|d‘qS)rr)Ú.0Úxrrr Ú Éóz4NoValidConnectionsError.__init__..Néÿÿÿÿrz+Unable to connect to port {0} on {1} or {2}z$Unable to connect to port {0} on {2}é)ÚsortedÚkeysÚjoinÚsuperr%rrÚerrors)rr0ÚaddrsÚbodyÚtailr ©Ú __class__rr rÃs   ÿz NoValidConnectionsError.__init__cCs|j|jffSr )r5r0rrrr Ú __reduce__Ôsz"NoValidConnectionsError.__reduce__)rrrrrr6Ú __classcell__rrr4r r%¬s r%c@seZdZdZdS)ÚCouldNotCanonicalizezh Raised when hostname canonicalization fails & fallback is disabled. .. versionadded:: 2.7 Nrrrrr r8Øsr8c@seZdZdZdS)ÚConfigParseErrora@ A fatal error was encountered trying to parse SSH config data. Typically this means a config file violated the ``ssh_config`` specification in a manner that requires exiting immediately, such as not matching ``key = value`` syntax or misusing certain ``Match`` keywords. .. versionadded:: 2.7 Nrrrrr r9âs r9)ÚsocketÚ Exceptionrr r r rrrr!r"r$r%r8r9rrrr Ús ,