Client - SetHostKeyHandler, OnHostKey[C] __cdecl FlowSshC_Client_SetHostKeyHandler(
[C++] [Client] virtual bool OnHostKey(RefPtr<PublicKey> publicKey); [C#] [Client] public event HostKeyEventHandler OnHostKey; [C] Parameters
[Cpp/Net] Overrides and Events
Handler Return Value Return false to reject the public-key (host-key) and disconnect. Return true to accept the key. Remarks The host-key handler is invoked while establishing a connection with the SSH server, at progress [ConnectStep]SshKeyExchange. It is mandatory that you register/implement this handler. Otherwise, server (host-key) verification fails and the connection is aborted. |