Table of Contents

Class SshExecMatcher

Namespace
SshSharp.Config
Assembly
SshSharp.dll

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 command with the system shell and completes with whether it exited with status 0. Gives up (and kills the command) after 30 seconds or when cancellationToken is cancelled.