Method Resolve
Resolve(string, SshConfigResolveOptions?)
Resolves the effective settings for host.
public SshHostConfig Resolve(string host, SshConfigResolveOptions? options = null)
Parameters
hoststringThe host name or alias, as the user typed it.
optionsSshConfigResolveOptionsExternal inputs (explicit user and port, home directory, ...); defaults are taken from the process.
Returns
Exceptions
- NotSupportedException
The config needs ExecMatcher or HostCanonicalizer, which are asynchronous: use ResolveAsync(string, SshConfigResolveOptions?, CancellationToken).