Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

SshParameters Class

Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)

Security parameters.

Syntax
public class SshParameters
Inheritance
Object
SshParameters
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Constructors

Name Description
SshParameters()

Initializes a new instance of SshParameters with default parameters.

Properties

Name Description
AuthenticationMethods

Gets or sets the group of allowed authentication methods.

ChannelCloseTimeout

Gets or sets the length of time in milliseconds before the operation times out when waiting for channel closure confirmation from the server.

Minimal value is 1000. Attempt to set this to a value lower than 1000 will cause an exception to be thrown.

If not specified, the timeout is either Timeout or 10 seconds, whichever is greater.

Compression

On clients, gets or sets a value indicating whether to prefer communication compression if supported by the server.
On servers, gets or sets a value indicating whether to enable or disable communication compression.

CompressionLevel

Gets or sets the compression level to be used if compression takes effect.
Possible values are 0-9, where 0 means no compression (fastest) and 9 means best compression (slowest). 5 (medium compression and speed) is a default value.
This only affects outgoing data.

EncryptionAlgorithms

Gets or sets the group of allowed encryption algorithms.

EncryptionModes

Gets or sets the group of allowed encryption modes.

HostKeyAlgorithms

Gets or sets the group of allowed host key (server key) algorithms.

KeyExchangeAlgorithms

Gets or sets the group of allowed key exchange algorithms.

MacAlgorithms

Get or sets the allowed message authentication code algorithms.

MaximumPacketSize

Gets or sets maximum SSH packet size. Valid packet size range is 4096 to 131072.

MinimumDiffieHellmanKeySize

Gets or sets the minimum allowed size (in bits) of the ephemeral Diffie-Hellman prime.

MinimumRsaKeySize

Gets or sets the minimum allowed size of the RSA key.

PreferredHostKeyAlgorithm

Gets or sets the preferred host key (server key) algorithm.

UseLegacyGroupExchange

Gets or sets a value indicating whether to use legacy form of Diffie-Hellman group exchange instead of the standard form.

UseStrictKeyExchange

Gets or sets a value indicating whether to enable strict key exchange extension (compatible with OpenSSH 9.6).

Methods

Name Description
Clone()

Returns a shallow copy of the current parameters.

GetEncryptionAlgorithms()

Gets a list of allowed encryption algorithms IDs and their order. See SetEncryptionAlgorithms(String[]) for more info.

GetHostKeyAlgorithms()

Gets a list of allowed host key algorithms IDs and their order. See SetHostKeyAlgorithms(String[]) for more info.

GetKeyExchangeAlgorithms()

Gets a list of allowed key exchange algorithms IDs and their order. See SetKeyExchangeAlgorithms(String[]) for more info.

GetMacAlgorithms()

Gets a list of allowed MAC algorithms IDs and their order. See SetMacAlgorithms(String[]) for more info.

GetSupportedEncryptionAlgorithms()

Gets a list of supported encryption algorithms (in their default order). See SetEncryptionAlgorithms(String[]) for more info.

GetSupportedHostKeyAlgorithms()

Gets a list of supported host key algorithms (in their default order). See SetHostKeyAlgorithms(String[]) for more info.

GetSupportedKeyExchangeAlgorithms()

Gets a list of supported key exchange algorithms (in their default order). See SetKeyExchangeAlgorithms(String[]) for more info.

GetSupportedMacAlgorithms()

Gets a list of supported MAC algorithms (in their default order). See SetMacAlgorithms(String[]) for more info.

SetEncryptionAlgorithms(String[])

Specifies a list of allowed encryption algorithms IDs and their order. Setting the list to null (Nothing in VB.NET) or an empty list specifies that the default list and order is to be used. When the list is set, EncryptionAlgorithms and EncryptionModes still apply. See the remarks for a list of supported algorithm IDs.

SetHostKeyAlgorithms(String[])

Specifies a list of allowed host key algorithms IDs and their order. Setting the list to null (Nothing in VB.NET) or an empty list specifies that the default list and order is to be used. When the list is set, HostKeyAlgorithms still applies, but PreferredHostKeyAlgorithm does not. See the remarks for a list of supported algorithm IDs.

SetKeyExchangeAlgorithms(String[])

Specifies a list of allowed key exchange algorithms IDs and their order. Setting the list to null (Nothing in VB.NET) or an empty list specifies that the default list and order is to be used. When the list is set, KeyExchangeAlgorithms still applies. See the remarks for a list of supported algorithm IDs.

SetMacAlgorithms(String[])

Specifies a list of allowed MAC algorithms IDs and their order. Setting the list to null (Nothing in VB.NET) or an empty list specifies that the default list and order is to be used. When the list is set, MacAlgorithms still applies. See the remarks for a list of supported algorithm IDs.

In This Article
  • Constructors
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies