Property HostKeyVerifier
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
HostKeyVerifier
Decides whether to trust the server's host key: a KnownHostsVerifier, Pinned(params string[]), or your own (FromDelegate(Func<SshHostKeyContext, CancellationToken, ValueTask<bool>>)). There is deliberately no default: accepting unknown keys silently would defeat the purpose of host authentication.
public required SshHostKeyVerifier HostKeyVerifier { get; init; }