Table of Contents

Property KexAlgorithms

Namespace
SshSharp
Assembly
SshSharp.dll

KexAlgorithms

The key exchange methods to offer, as ssh_config's KexAlgorithms: for example SshAlgorithmList.Remove("diffie-hellman-group*"), or SshAlgorithmList.Only("mlkem768x25519-sha256", "curve25519-sha256"). Null (the default) offers SshSharp's defaults, post-quantum hybrids first. ML-KEM methods are dropped where the platform lacks ML-KEM (before .NET 10), and FipsMode still removes what it excludes.

public SshAlgorithmList? KexAlgorithms { get; init; }

Property Value

SshAlgorithmList

Exceptions

ArgumentException

A name is not a key exchange method SshSharp implements.