Class 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.
public static class SshExecMatcher
- Inheritance
-
SshExecMatcher
- Inherited Members
Methods
- RunShellAsync(string, CancellationToken)
Runs
commandwith the system shell and completes with whether it exited with status 0. Gives up (and kills the command) after 30 seconds or whencancellationTokenis cancelled.