ConnectionInfo Timeout Property SSH .NET Client Library Documentation
Gets or sets connection timeout.

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

public TimeSpan Timeout { get; set; }

Field Value

Connection timeout.
Examples

var connectionInfo = new PasswordConnectionInfo(host, username, password);

connectionInfo.Timeout = TimeSpan.FromSeconds(30);

using (var client = new SshClient(connectionInfo))
{
    client.Connect();
    //  Do something here
    client.Disconnect();
}
See Also