Table of Contents

Property PubkeyAcceptedAlgorithms

Namespace
SshSharp
Assembly
SshSharp.dll

PubkeyAcceptedAlgorithms

The signature algorithms public-key authentication may use, as ssh_config's PubkeyAcceptedAlgorithms: for example SshAlgorithmList.Only("ssh-ed25519"), or SshAlgorithmList.Remove("rsa-sha2-*"). A key in PrivateKeys is offered only with an algorithm the list allows, and is skipped when it allows none of the key's: a plain key under its own type (ssh-ed25519, ecdsa-sha2-nistp256), an RSA key as rsa-sha2-512 or rsa-sha2-256, and a key with a certificate under the certificate's algorithm (ssh-ed25519-cert-v01@openssh.com), which its plain one does not allow. An RSA key signs with the first of the list's RSA algorithms that the server accepts (its server-sig-algs). Null (the default) allows every algorithm a key has, in the key's own order (RSA: SHA-512 first). FipsMode does not apply to it.

public SshAlgorithmList? PubkeyAcceptedAlgorithms { get; init; }

Property Value

SshAlgorithmList

Exceptions

ArgumentException

A name is not a public key signature algorithm SshSharp implements (it never signs with SHA-1 ssh-rsa).