Table of Contents

Property AddressFamily

Namespace
SshSharp
Assembly
SshSharp.dll

AddressFamily

Which addresses of the server to try, as ssh_config's AddressFamily (ssh -4, ssh -6): any (the default), IPv4 only or IPv6 only. Applies to ConnectAsync(string, int, SshClientOptions, CancellationToken); with a Proxy, the proxy resolves the server's name and this does not apply (the connection to the proxy itself uses any family). With a LocalEndPoint too, only addresses that are of the allowed family and of the local endpoint's are tried.

public SshAddressFamily AddressFamily { get; init; }

Property Value

SshAddressFamily