SecureBlackbox 2020 Node.js Edition

Questions / Feedback?

UnknownKeyReceived Event

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

Syntax

sshclient.on('UnknownKeyReceived', [callback])

Callback

The 'callback' is called when the 'UnknownKeyReceived' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.algorithm
e.bits
e.fingerprintSHA256
e.action

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 2020 Node.js Edition - Version 20.0 [Build 8165]