SshCommand Result Property SSH .NET Client Library Documentation
Gets the command execution result.

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

public string Result { get; }
Examples

client.Connect();

var testValue = Guid.NewGuid().ToString();
var command = client.RunCommand(string.Format("echo {0}", testValue));
var result = command.Result;
result = result.Substring(0, result.Length - 1);    //  Remove \n character returned by command

client.Disconnect();
See Also