Table of Contents

Method ResolveAsync

Namespace
SshSharp.Config
Assembly
SshSharp.dll

ResolveAsync(string, SshConfigResolveOptions?, CancellationToken)

Resolves the effective settings for host, as Resolve(string, SshConfigResolveOptions?) does, awaiting ExecMatcher and HostCanonicalizer when the config needs them (Match exec, CanonicalizeHostname).

public Task<SshHostConfig> ResolveAsync(string host, SshConfigResolveOptions? options = null, CancellationToken cancellationToken = default)

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.

cancellationToken CancellationToken

Cancels the callbacks.

Returns

Task<SshHostConfig>