SshCommand CommandTimeout Property SSH .NET Client Library Documentation
Gets or sets the command timeout.

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

public TimeSpan CommandTimeout { get; set; }

Field Value

The command timeout.
Examples

client.Connect();
var cmd = client.CreateCommand("sleep 10s");
cmd.CommandTimeout = TimeSpan.FromSeconds(5);
cmd.Execute();
client.Disconnect();
See Also