blob: 45010f0fb571cb649b76465ee4ae752d420c0d2e [file] [log] [blame]
koder aka kdanilov22d134e2016-11-08 11:33:19 +02001from io import BytesIO
2from typing import Any, Tuple
3
4
5__version_info__ = None # type: Tuple[int, int, int]
6
7
8class PasswordRequiredException(Exception):
9 pass
10
11
12class SSHException(Exception):
13 pass
14
15
16class RSAKey:
17 @classmethod
18 def from_private_key(cls, data: BytesIO) -> 'RSAKey': ...
19
20
21
22class AutoAddPolicy:
23 pass
24
25
26class SSHClient:
27 def __init__(self) -> None:
28 self.known_hosts = None # type: Any
29
30 def load_host_keys(self, path: str) -> None: ...
31 def set_missing_host_key_policy(self, policy: AutoAddPolicy) -> None: ...
32 def connect(self, *args: Any, **kwargs: Any): ...
33 def get_transport(self) -> Any: ...
34 def open_sftp(self) -> Any: ...