Table of Contents

Constructor SshJumpHost

Namespace
SshSharp
Assembly
SshSharp.dll

SshJumpHost(string, int, SshClientOptions)

A jump host at host:port, logged in to and verified with options.

public SshJumpHost(string host, int port, SshClientOptions options)

Parameters

host string

The jump host's name or address. For the first hop, it is resolved locally (or by the destination's Proxy); for later hops, by the hop before it.

port int

The jump host's SSH port.

options SshClientOptions

The hop's user, credentials, HostKeyVerifier and other settings. Its ConnectTimeout bounds this hop's connection; the destination's bounds the whole chain. The network settings are the destination's: Proxy, LocalEndPoint, AddressFamily, ConfigureSocket, ConnectionAttempts and StaggeredConnectDelay of the destination's options apply to the first network connection, the first hop's, so the hop's must not be set (its AddressFamily, ConfigureSocket, ConnectionAttempts and StaggeredConnectDelay are not used). A hop has no jump hosts of its own: list every hop, in order, in the destination's JumpHosts.

Exceptions

ArgumentException

host is empty, or options set JumpHosts, Proxy or LocalEndPoint.

ArgumentOutOfRangeException

port is not between 1 and 65535.