Table of Contents

Class SshHostKeyScanOptions

Namespace
SshSharp
Assembly
SshSharp.dll
public sealed class SshHostKeyScanOptions
Inheritance
SshHostKeyScanOptions
Inherited Members

Properties

FipsMode

Use only FIPS-approved algorithms, as FipsMode does (no Ed25519 keys are found then).

HostKeyAlgorithms

The host key algorithms to ask for, for example ssh-ed25519 or rsa-sha2-512; null for every plain key type SshSharp supports. Algorithms of one key type (rsa-sha2-512 and rsa-sha2-256) find the same key, so it is reported once.

IncludeCertificates

Also ask for host certificates (-cert-v01@openssh.com), when HostKeyAlgorithms is null.

Logger

Where diagnostics go. Never receives secrets.

Timeout

How long each connection of the scan (connecting and one key exchange) may take before the scan fails with Timeout, as ssh-keyscan -T. Default 5 seconds, as ssh-keyscan; InfiniteTimeSpan for no limit but the cancellation token.