Table of Contents

Property RequiredRsaSize

Namespace
SshSharp
Assembly
SshSharp.dll

RequiredRsaSize

The smallest RSA host key accepted, in bits, as ssh_config's RequiredRSASize; a smaller one fails the connection with an SshHostKeyException. Default 2048 (ssh's default is 1024). At least 1024, the least ssh accepts. A value above 2048 also applies to the RSA authority that signed a host certificate, as in OpenSSH master; a certificate's authority is never accepted under 2048 bits, whatever the value.

public int RequiredRsaSize { get; init; }

Property Value

int

Exceptions

ArgumentOutOfRangeException

The value is below 1024.