The Maverick.NET SSH API

AbstractKnownHostsKeyVerification.OnHostKeyMismatch Method 

Called by the verification instance when a key is received by a server that does not match the current key recorded in the known_hosts file.

[Visual Basic]
MustOverride Public Sub OnHostKeyMismatch( _
   ByVal host As String, _
   ByVal allowedKey As SSHPublicKey, _
   ByVal actualKey As SSHPublicKey _
)
[C#]
public abstract void OnHostKeyMismatch(
   string host,
   SSHPublicKey allowedKey,
   SSHPublicKey actualKey
);

Parameters

host
The hostname of the SSH server.
allowedKey
The currently allowed key.
actualKey
The actual key supplied by the server.

See Also

AbstractKnownHostsKeyVerification Class | Maverick.PublicKey Namespace