Property ConnectionAttempts
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
ConnectionAttempts
Overrides ssh_config's ConnectionAttempts for the destination and every ProxyJump hop: how many times to try the TCP
connection (to the server, or to Proxy), one second apart. Only failures to reach it are tried again (refused,
unreachable, timed out), never a failed handshake or authentication, and the ConnectTimeout bounds all the attempts
together. Null (the default) leaves it to ssh_config (1 when unset).
public int? ConnectionAttempts { get; init; }
Property Value
- int?
Exceptions
- ArgumentOutOfRangeException
The value is less than 1.