ó Ú_e[c@sÙddlZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd efd „ƒYZd efd „ƒYZdefd„ƒYZdefd„ƒYZ dej fd„ƒYZ dS(iÿÿÿÿNt SSHExceptioncBseZdZRS(sT Exception raised by failures in SSH2 protocol negotiation or logic errors. (t__name__t __module__t__doc__(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRstAuthenticationExceptioncBseZdZRS(sÒ 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 (RRR(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRstPasswordRequiredExceptioncBseZdZRS(sR Exception raised when a password is needed to unlock a private key file. (RRR(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyR(stBadAuthenticationTypecBs&eZdZgZd„Zd„ZRS(sÉ 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 cCs,tj||ƒ||_||f|_dS(N(Rt__init__t allowed_typestargs(tselft explanationttypes((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyR;s cCsdjtj|ƒ|jƒS(Ns{} (allowed_types={!r})(tformatRt__str__R(R ((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRAs(RRRRRR(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyR/s tPartialAuthenticationcBseZdZgZd„ZRS(sM An internal exception thrown in the case of partial authentication. cCs)tj|dƒ||_|f|_dS(Nspartial authentication(RRRR (R R ((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRMs (RRRRR(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRGstChannelExceptioncBseZdZd„ZRS(s¡ Exception raised when an attempt to open a new `.Channel` fails. :param int code: the error code returned by the server .. versionadded:: 1.6 cCs,tj||ƒ||_||f|_dS(N(RRtcodeR (R Rttext((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyR\s (RRRR(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRTstBadHostKeyExceptioncBseZdZd„ZRS(s 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 cCshd}|j||jƒ|jƒƒ}tj||ƒ||_||_||_|||f|_dS(Ns:Host key for server {} does not match: got {}, expected {}(R t get_base64RRthostnametkeyt expected_keyR (R Rtgot_keyRtmessage((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRms    (RRRR(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRcs tProxyCommandFailurecBseZdZd„ZRS(sâ 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. cCs8tj|dj||ƒƒ||_||f|_dS(Ns5"ProxyCommand ({})" returned non-zero exit status: {}(RRR terrorR (R tcommandR((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRs    (RRRR(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRzstNoValidConnectionsErrorcBs eZdZd„Zd„ZRS(sú 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 cCsœt|jƒƒ}djg|d D]}|d^q#ƒ}|dd}|rYd}nd}tt|ƒjd|j|dd||ƒƒ||_dS(sl :param dict errors: The errors dict to store, as described by class docstring. s, iÿÿÿÿis+Unable to connect to port {0} on {1} or {2}s$Unable to connect to port {0} on {2}iN( tsortedtkeystjointsuperRRtNoneR terrors(R R#taddrstxtbodyttailtmsg((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyR¢s* cCs|j|jffS(N(t __class__R#(R ((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyt __reduce__´s(RRRRR*(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyRŒs ( tsockett ExceptionRRRRRRRRRR(((s:/tmp/pip-install-KP2Jbq/paramiko/paramiko/ssh_exception.pyts