Table of Contents

Property ExecMatcher

Namespace
SshSharp.Config
Assembly
SshSharp.dll

ExecMatcher

Evaluates Match exec commands (after token expansion): completes with true when the command succeeds. Null (the default) means exec criteria never match, because running commands from a config file is opt-in; for trusted files, run them with RunShellAsync(string, CancellationToken): (command, ct) => new(SshExecMatcher.RunShellAsync(command, ct)). Asynchronous, so a config that needs it resolves with ResolveAsync(string, SshConfigResolveOptions?, CancellationToken).

public Func<string, CancellationToken, ValueTask<bool>>? ExecMatcher { get; init; }

Property Value

Func<string, CancellationToken, ValueTask<bool>>