SecureBlackbox Lite 2020 Python Edition

Questions / Feedback?

on_unknown_key_received Event

This event is fired when an unknown SSH key is received from the server.

Syntax

class SSHClientUnknownKeyReceivedEventParams(object):
  @property
  def algorithm() -> int: ...
  @property
  def bits() -> int: ...
  @property
  def fingerprint_sha256() -> str: ...
  @property
  def action() -> int: ...
  @action.setter
  def action(value) -> None: ...

# In class SSHClient:
@property
def on_unknown_key_received() -> Callable[[SSHClientUnknownKeyReceivedEventParams], None]: ...
@on_unknown_key_received.setter
def on_unknown_key_received(event_hook: Callable[[SSHClientUnknownKeyReceivedEventParams], None]) -> None: ...

Remarks

This event allows to check the fingerprint of the key received from the server, in case the key is not in the list of known keys. Algorithm and Bits specify the key algorithm and the number of bits. FingerprintSHA256 contains the key's fingerprint.

Use Action to tell the class what it should do with the key.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 Python Edition - Version 20.0 [Build 8166]