Class AMNetSimpleGeneratorHostKeyProvider
Configures a generated host key provider for the SSH server identity.
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Factories
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public class AMNetSimpleGeneratorHostKeyProvider
Constructors
| Edit this page View SourceAMNetSimpleGeneratorHostKeyProvider(string)
Creates a generated host key provider.
Declaration
public AMNetSimpleGeneratorHostKeyProvider(string keyPath = "")
Parameters
| Type | Name | Description |
|---|---|---|
| string | keyPath | Optional path where the generated host key is stored and reused. |
Properties
| Edit this page View SourceAlgorithm
Gets the host key generation algorithm.
Declaration
public string Algorithm { get; }
Property Value
| Type | Description |
|---|---|
| string |
KeyPath
Gets the optional path where the generated host key is stored and reused.
Declaration
public string KeyPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
KeySize
Gets the host key size in bits.
Declaration
public int KeySize { get; }
Property Value
| Type | Description |
|---|---|
| int |
StrictFilePermissions
Gets whether strict host key file permission checks are enabled.
Declaration
public bool StrictFilePermissions { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourcegetAlgorithm()
Gets the host key generation algorithm.
Declaration
public string getAlgorithm()
Returns
| Type | Description |
|---|---|
| string |
getKeySize()
Gets the host key size in bits.
Declaration
public int getKeySize()
Returns
| Type | Description |
|---|---|
| int |
hasStrictFilePermissions()
Returns whether strict host key file permission checks are enabled.
Declaration
public bool hasStrictFilePermissions()
Returns
| Type | Description |
|---|---|
| bool |
setAlgorithm(string)
Sets the host key generation algorithm.
Declaration
public void setAlgorithm(string algorithm)
Parameters
| Type | Name | Description |
|---|---|---|
| string | algorithm | The algorithm name, such as Rsa. |
setKeySize(int)
Sets the host key size in bits.
Declaration
public void setKeySize(int keySize)
Parameters
| Type | Name | Description |
|---|---|---|
| int | keySize | The key size in bits. |
setStrictFilePermissions(bool)
Enables or disables strict host key file permission checks.
Declaration
public void setStrictFilePermissions(bool strictFilePermissions)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | strictFilePermissions | Whether strict file permission checks are enabled. |