Table of Contents

Method Resolve

Namespace
SshSharp.Config
Assembly
SshSharp.dll

Resolve(string, SshConfigResolveOptions?)

Resolves the effective settings for host.

public SshHostConfig Resolve(string host, SshConfigResolveOptions? options = null)

Parameters

host string

The host name or alias, as the user typed it.

options SshConfigResolveOptions

External inputs (explicit user and port, home directory, ...); defaults are taken from the process.

Returns

SshHostConfig

Exceptions

NotSupportedException

The config needs ExecMatcher or HostCanonicalizer, which are asynchronous: use ResolveAsync(string, SshConfigResolveOptions?, CancellationToken).