Gets or sets connection timeout.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
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