2 from typing import Mapping
4 from paramiko.pkey import PKey
6 class SSHException(Exception): ...
7 class AuthenticationException(SSHException): ...
8 class PasswordRequiredException(AuthenticationException): ...
10 class BadAuthenticationType(AuthenticationException):
11 allowed_types: list[str]
13 def __init__(self, explanation: str, types: list[str]) -> None: ...
15 class PartialAuthentication(AuthenticationException):
16 allowed_types: list[str]
17 def __init__(self, types: list[str]) -> None: ...
19 class ChannelException(SSHException):
22 def __init__(self, code: int, text: str) -> None: ...
24 class BadHostKeyException(SSHException):
28 def __init__(self, hostname: str, got_key: PKey, expected_key: PKey) -> None: ...
30 class ProxyCommandFailure(SSHException):
33 def __init__(self, command: str, error: str) -> None: ...
35 class NoValidConnectionsError(socket.error):
36 errors: Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]
37 def __init__(self, errors: Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]) -> None: ...
38 def __reduce__(self) -> tuple[type, tuple[Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]]]: ...
40 class CouldNotCanonicalize(SSHException): ...
41 class ConfigParseError(SSHException): ...