Table of Contents

Class SshConfigSettings

Namespace
Tmds.Ssh
Assembly
Tmds.Ssh.dll

Settings for configuring the SshClient using the OpenSSH ssh_config model.

public sealed class SshConfigSettings
Inheritance
SshConfigSettings
Inherited Members

Constructors

SshConfigSettings()

Creates default config settings.

public SshConfigSettings()

Properties

AutoConnect

Gets or sets whether to automatically connect when the client is used.

public bool AutoConnect { get; set; }

Property Value

bool

Remarks

Defaults to true.

AutoReconnect

Gets or sets whether to automatically reconnect when the client is used after an unexpected disconnect.

public bool AutoReconnect { get; set; }

Property Value

bool

Remarks

Defaults to false.

ConfigFilePaths

Gets or sets the config file paths.

public List<string> ConfigFilePaths { get; set; }

Property Value

List<string>

ConnectTimeout

Gets or sets the connection timeout.

public TimeSpan ConnectTimeout { get; set; }

Property Value

TimeSpan

Remarks

Defaults to 15 seconds. This is overridden by the ConnectTimeout option (when set).

DefaultConfig

Gets default configuration settings.

public static SshConfigSettings DefaultConfig { get; }

Property Value

SshConfigSettings

DefaultConfigFilePaths

Gets default configuration file paths.

public static IReadOnlyList<string> DefaultConfigFilePaths { get; }

Property Value

IReadOnlyList<string>

HostAuthentication

Gets or sets the host authentication callback for unknown host keys.

public HostAuthentication? HostAuthentication { get; set; }

Property Value

HostAuthentication

Remarks

The delegate is called for unknown keys when StrictHostKeyChecking is 'ask' (default).

NoConfig

Gets configuration that loads no files.

public static SshConfigSettings NoConfig { get; }

Property Value

SshConfigSettings

Options

Gets or sets config options.

public Dictionary<SshConfigOption, SshConfigOptionValue> Options { get; set; }

Property Value

Dictionary<SshConfigOption, SshConfigOptionValue>

PasswordPrompt

Gets or sets the password prompt for password authentication.

public PasswordPrompt? PasswordPrompt { get; set; }

Property Value

PasswordPrompt