Table of Contents

Property HostKeyAlgorithms

Namespace
SshSharp
Assembly
SshSharp.dll

HostKeyAlgorithms

The host key algorithms to accept from the server, as ssh_config's HostKeyAlgorithms: for example SshAlgorithmList.Only("ssh-ed25519"). Certificate algorithms (-cert-v01@openssh.com) may be listed too. Null (the default) accepts SshSharp's defaults. When the HostKeyVerifier trusts a certificate authority for the host, the certificate versions of the allowed algorithms are asked for first, as ssh does. FipsMode still removes Ed25519.

public SshAlgorithmList? HostKeyAlgorithms { get; init; }

Property Value

SshAlgorithmList

Exceptions

ArgumentException

A name is not a host key algorithm SshSharp implements.