The Maverick.NET SSH API

AbstractKnownHostsKeyVerification.VerifyHost Method 

Verify that the public key is acceptable for the host using the standard "known_hosts" file.

[Visual Basic]
NotOverridable Public Function VerifyHost( _
   ByVal hostname As String, _
   ByVal key As SSHPublicKey _
) As Boolean _
    Implements HostKeyVerification.VerifyHost
[C#]
public bool VerifyHost(
   string hostname,
   SSHPublicKey key
);

Parameters

hostname
The name of the server.
key
The public key supplied by the server during key exchange.

Return Value

true if the key has been verified from the "known_hosts" file, otherwise false

Implements

HostKeyVerification.VerifyHost

Remarks

This method is called by the Maverick.NET system and should not be called directly.

See Also

AbstractKnownHostsKeyVerification Class | Maverick.PublicKey Namespace