SshCommand OutputStream Property SSH .NET Client Library Documentation
Gets the output stream.

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

public Stream OutputStream { get; private set; }
Examples

client.Connect();

var cmd = client.CreateCommand("ls -l");   //  very long list 
var asynch = cmd.BeginExecute();

var reader = new StreamReader(cmd.OutputStream);

while (!asynch.IsCompleted)
{
    var result = reader.ReadToEnd();
    if (string.IsNullOrEmpty(result))
        continue;
    Console.Write(result);
}
cmd.EndExecute(asynch);

client.Disconnect();
See Also