Table of Contents

Namespace SshSharp.Config

Classes

KnownHostsEntry

One parsed known_hosts line.

KnownHostsFile

An OpenSSH known_hosts file. Comments, blank lines and unrecognized lines are preserved when the file is saved.

SshConfig

An OpenSSH client configuration (ssh_config): parsed into Host sections and resolved per host with OpenSSH's first-obtained-value-wins rules.

SshConfigBlock

A Host or Match section, or the global section before the first one.

SshConfigDirective

One directive in an ssh_config file.

SshConfigResolveOptions

Inputs to Resolve(string, SshConfigResolveOptions?) that come from outside the config file.

SshExecMatcher

Runs Match exec commands. Running commands named in a config file is how OpenSSH works, but it executes local programs, so ExecMatcher is null by default (exec criteria never match) and you opt in with RunShellAsync(string, CancellationToken) only for config files you trust.

SshHostConfig

The effective settings for one host, resolved from an SshConfig.

Enums

KnownHostsCheckResult

The result of checking a presented host key against a KnownHostsFile.

KnownHostsMarker

The optional marker in front of a known_hosts line.

RequestTty

The RequestTTY setting.

SshAddressFamily

The AddressFamily setting.

StrictHostKeyChecking

The StrictHostKeyChecking policy.

UpdateHostKeys

The UpdateHostKeys setting: whether known_hosts follows the host keys a server announces after login.