1 from socket import _RetAddress, socket
2 from threading import Thread
3 from typing import Protocol, Tuple
5 from paramiko.channel import Channel
6 from paramiko.message import Message
7 from paramiko.pkey import PKey
8 from paramiko.transport import Transport
10 class _AgentProxy(Protocol):
11 def connect(self) -> None: ...
12 def close(self) -> None: ...
14 cSSH2_AGENTC_REQUEST_IDENTITIES: bytes
15 SSH2_AGENT_IDENTITIES_ANSWER: int
16 cSSH2_AGENTC_SIGN_REQUEST: bytes
17 SSH2_AGENT_SIGN_RESPONSE: int
20 def __init__(self) -> None: ...
21 def get_keys(self) -> Tuple[AgentKey, ...]: ...
23 class AgentProxyThread(Thread):
24 def __init__(self, agent: _AgentProxy) -> None: ...
25 def run(self) -> None: ...
27 class AgentLocalProxy(AgentProxyThread):
28 def __init__(self, agent: AgentServerProxy) -> None: ...
29 def get_connection(self) -> tuple[socket, _RetAddress]: ...
31 class AgentRemoteProxy(AgentProxyThread):
32 def __init__(self, agent: AgentClientProxy, chan: Channel) -> None: ...
33 def get_connection(self) -> tuple[socket, _RetAddress]: ...
35 class AgentClientProxy:
37 def __init__(self, chanRemote: Channel) -> None: ...
38 def __del__(self) -> None: ...
39 def connect(self) -> None: ...
40 def close(self) -> None: ...
42 class AgentServerProxy(AgentSSH):
44 def __init__(self, t: Transport) -> None: ...
45 def __del__(self) -> None: ...
46 def connect(self) -> None: ...
47 def close(self) -> None: ...
48 def get_env(self) -> dict[str, str]: ...
50 class AgentRequestHandler:
51 def __init__(self, chanClient: Channel) -> None: ...
52 def __del__(self) -> None: ...
53 def close(self) -> None: ...
55 class Agent(AgentSSH):
56 def __init__(self) -> None: ...
57 def close(self) -> None: ...
64 def __init__(self, agent: AgentSSH, blob: bytes) -> None: ...
65 def asbytes(self) -> bytes: ...
66 def get_name(self) -> str: ...
67 def sign_ssh_data(self, data: bytes) -> Message: ...