Generates an SSH private key using the specified algorithm and a default key size.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public Shared Function Generate ( _
	algorithm As SshHostKeyAlgorithm _
) As SshPrivateKey
C#
public static SshPrivateKey Generate(
	SshHostKeyAlgorithm algorithm
)

Parameters

algorithm
Type: Rebex.Net..::..SshHostKeyAlgorithm
Key algorithm.

Return Value

SSH private key object.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also