on_known_key_received Event
This event is fired when a known SSH key is received from the server.
Syntax
class SSHClientKnownKeyReceivedEventParams(object): @property def algorithm() -> int: ... @property def bits() -> int: ... @property def fingerprint_sha256() -> str: ... # In class SSHClient: @property def on_known_key_received() -> Callable[[SSHClientKnownKeyReceivedEventParams], None]: ... @on_known_key_received.setter def on_known_key_received(event_hook: Callable[[SSHClientKnownKeyReceivedEventParams], None]) -> None: ...
Remarks
This event allows to check the fingerprint of the key received from the server, in case the key is in the list of known keys. Algorithm and Bits specify the key algorithm and the number of bits. FingerprintSHA256 contains the key's fingerprint.