UnknownKeyReceived Event
This event is fired when an unknown SSH key is received from the server.
Syntax
typedef struct { int Algorithm; int Bits; String FingerprintSHA256; int Action; } TsbxSSHClientUnknownKeyReceivedEventParams; typedef void __fastcall (__closure *TsbxSSHClientUnknownKeyReceivedEvent)(System::TObject* Sender, TsbxSSHClientUnknownKeyReceivedEventParams *e); __property TsbxSSHClientUnknownKeyReceivedEvent OnUnknownKeyReceived = { read=FOnUnknownKeyReceived, write=FOnUnknownKeyReceived };
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 component what it should do with the key.