The Maverick.NET SSH API

AbstractKnownHostsKeyVerification.AllowHost Method 

Call this method to allow a host key and optionally save the key to the known_hosts file.

[Visual Basic]
Public Sub AllowHost( _
   ByVal host As String, _
   ByVal key As SSHPublicKey, _
   ByVal always As Boolean _
)
[C#]
public void AllowHost(
   string host,
   SSHPublicKey key,
   bool always
);

Parameters

host
The hostname of the SSH server.
key
The host key to allow.
always
Should the host key always be allowed. i.e. Should the key be saved to the known_hosts file.

See Also

AbstractKnownHostsKeyVerification Class | Maverick.PublicKey Namespace