Property Port
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
Port
The destination's port, overriding ssh_config's Port as ssh -p does: resolution sees it too (%p, and the
port a Match block and the result report). A port in an ssh://host:port destination wins. Not used for ProxyJump
hops, whose ports come from their own entries and configuration. Null (the default) leaves it to ssh_config (22 when unset).
public int? Port { get; init; }
Property Value
- int?
Exceptions
- ArgumentOutOfRangeException
The value is not between 1 and 65535.