blob: 98ee7ae89345c06d70f41c95e2f2773ab17011bd [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
koder aka kdanilov23e6bdf2016-12-24 02:18:54 +020018 def from_private_key(cls, data: BytesIO, password: str = None) -> 'RSAKey': ...
19
20 @classmethod
21 def from_private_key_file(cls, fname: str, password: str = None) -> 'RSAKey': ...
koder aka kdanilov22d134e2016-11-08 11:33:19 +020022
23
24
25class AutoAddPolicy:
26 pass
27
28
29class SSHClient:
30 def __init__(self) -> None:
31 self.known_hosts = None # type: Any
32
33 def load_host_keys(self, path: str) -> None: ...
34 def set_missing_host_key_policy(self, policy: AutoAddPolicy) -> None: ...
35 def connect(self, *args: Any, **kwargs: Any): ...
36 def get_transport(self) -> Any: ...
37 def open_sftp(self) -> Any: ...