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
hoststringThe 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.
portintThe jump host's SSH port.
optionsSshClientOptionsThe 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
hostis empty, oroptionsset JumpHosts, Proxy or LocalEndPoint.- ArgumentOutOfRangeException
portis not between 1 and 65535.