Table of Contents

Property ConnectTimeout

Namespace
SshSharp
Assembly
SshSharp.dll

ConnectTimeout

Overrides ssh_config's ConnectTimeout for the destination and every ProxyJump hop: how long each may take, from loading its identity files through authentication (see ConnectTimeout). A hop's time counts toward the host it leads to. InfiniteTimeSpan sets no limit whatever the configuration says; null (the default) leaves it to ssh_config.

public TimeSpan? ConnectTimeout { get; init; }

Property Value

TimeSpan?

Exceptions

ArgumentOutOfRangeException

The value is zero or negative (other than infinite), or longer than about 24 days.