SshCommand Error Property SSH .NET Client Library Documentation
Gets the command execution error.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public string Error { get; }
Examples

client.Connect();

var cmd = client.CreateCommand(";");
cmd.Execute();
if (!string.IsNullOrEmpty(cmd.Error))
{
    Console.WriteLine(cmd.Error);
}

client.Disconnect();
See Also