Table of Contents

Property JumpHosts

Namespace
SshSharp
Assembly
SshSharp.dll

JumpHosts

Jump hosts to reach the server through, first to last, as ssh -J and ssh_config's ProxyJump: the client connects to the first, reaches each next one through the one before, and the server through the last. Each hop logs in and verifies its host key with its own Options; these options (credentials, HostKeyVerifier) are the destination's alone and never offered to a hop. Proxy, LocalEndPoint, AddressFamily, ConfigureSocket, ConnectionAttempts and StaggeredConnectDelay apply to the first network connection, which is the first hop's (a hop's own are not used). ConnectTimeout bounds the whole chain. Disposing the client closes every hop. Empty (the default) connects directly. Used by ConnectAsync(string, int, SshClientOptions, CancellationToken); ignored when connecting over a stream you opened.

public IReadOnlyList<SshJumpHost> JumpHosts { get; init; }

Property Value

IReadOnlyList<SshJumpHost>

Exceptions

ArgumentException

The list contains null.