%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/paramiko/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/paramiko/__pycache__/ssh_exception.cpython-312.pyc

�

K�e���>�ddlZGd�de�ZGd�de�ZGd�de�ZGd�d	e�ZGd
�de�ZGd�d
e�ZGd�de�ZGd�de�Z	Gd�de�Z
Gd�dej�ZGd�de�Z
Gd�de�ZGd�de�Zy)�Nc��eZdZdZy)�SSHExceptionzT
    Exception raised by failures in SSH2 protocol negotiation or logic errors.
    N��__name__�
__module__�__qualname__�__doc__���8/usr/lib/python3/dist-packages/paramiko/ssh_exception.pyrr����	rrc��eZdZdZy)�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
    Nrr
rrrrs���	rrc��eZdZdZy)�PasswordRequiredExceptionzR
    Exception raised when a password is needed to unlock a private key file.
    Nrr
rrrr*r
rrc� �eZdZdZgZd�Zd�Zy)�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
    c�N�tj|||�||_||_y�N)r�__init__�explanation�
allowed_types)�selfr�typess   rrzBadAuthenticationType.__init__>s&��	 �(�(��{�E�B�&���"��rc�N�dj|j|j�S)Nz{}; allowed types: {!r})�formatrr�rs r�__str__zBadAuthenticationType.__str__Es&��(�/�/����d�0�0�
�	
rN�rrrr	rrrr
rrrr2s����M�#�
rrc� �eZdZdZgZd�Zd�Zy)�PartialAuthenticationzM
    An internal exception thrown in the case of partial authentication.
    c�>�tj||�||_yr)rrr)rrs  rrzPartialAuthentication.__init__Rs���(�(��u�5�"��rc�8�dj|j�S)Nz+Partial authentication; allowed types: {!r})rrrs rrzPartialAuthentication.__str__Vs��<�C�C����
�	
rNrr
rrr!r!Ks����M�#�
rr!c��eZdZdZd�Zd�Zy)�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
    c�N�tj|||�||_||_yr)rr�code�text)rr'r(s   rrzChannelException.__init__es"�����d�D�$�/���	���	rc�N�dj|j|j�S)NzChannelException({!r}, {!r}))rr'r(rs rrzChannelException.__str__js��-�4�4�T�Y�Y��	�	�J�JrN�rrrr	rrr
rrr%r%\s����
Krr%c��eZdZdZd�Zd�Zy)�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
    c�^�tj||||�||_||_||_yr)rr�hostname�key�expected_key)rr.�got_keyr0s    rrzBadHostKeyException.__init__ys,�����d�H�g�|�D� ��
����(��rc��d}|j|j|jj�|jj��S)Nz@Host key for server '{}' does not match: got '{}', expected '{}')rr.r/�
get_base64r0)r�msgs  rrzBadHostKeyException.__str__sF��N�	��z�z��M�M��H�H���!����(�(�*�
�	
rNr*r
rrr,r,ns���)�
rr,c��eZdZdZy)�IncompatiblePeerzk
    A disagreement arose regarding an algorithm required for key exchange.

    .. versionadded:: 2.9
    Nrr
rrr6r6�s���	rr6c��eZdZdZd�Zd�Zy)�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.
    c�N�tj|||�||_||_yr)rr�command�error)rr:r;s   rrzProxyCommandFailure.__init__�s"�����d�G�U�3������
rc�N�dj|j|j�S)Nz3ProxyCommand("{}") returned nonzero exit status: {})rr:r;rs rrzProxyCommandFailure.__str__�s"��D�K�K��L�L�$�*�*�
�	
rNr*r
rrr8r8�s����

rr8c�(��eZdZdZ�fd�Zd�Z�xZS)�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
    c���t|j��}dj|ddD�cgc]}|d��	c}�}|dd}|rd}nd}tt|�d|j
|dd||��||_ycc}w)zl
        :param dict errors:
            The errors dict to store, as described by class docstring.
        z, 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)rrF�addrs�x�body�tailr4�	__class__s       �rrz NoValidConnectionsError.__init__�s����
�v�{�{�}�%���y�y��c�r�
�3�1�!�A�$�3�4���R�y��|���?�C�8�C�
�%�t�5��#�*�*�U�1�X�a�[�$��5�	
�����4s�Bc�4�|j|jffSr)rKrFrs r�
__reduce__z"NoValidConnectionsError.__reduce__�s���������/�/r)rrrr	rrM�
__classcell__)rKs@rr>r>�s����,�"0rr>c��eZdZdZy)�CouldNotCanonicalizezh
    Raised when hostname canonicalization fails & fallback is disabled.

    .. versionadded:: 2.7
    Nrr
rrrPrP�����	rrPc��eZdZdZy)�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
    Nrr
rrrSrS�s���	rrSc��eZdZdZy)�MessageOrderErrorzo
    Out-of-order protocol messages were received, violating "strict kex" mode.

    .. versionadded:: 3.4
    Nrr
rrrUrU�rQrrU)�socket�	Exceptionrrrrr!r%r,r6r8r;r>rPrSrUr
rr�<module>rXs���&�	�9�	�		�l�		�	� 7�	�
�3�
�2
�3�
�"K�|�K�$
�,�
�8	�|�	�
�,�
�&)0�f�l�l�)0�X	�<�	�	�|�	�	��	r

Zerion Mini Shell 1.0