<PackageReference Include="SSH.NET" Version="2023.0.1" />

ConnectionInfo

Represents remote connection information class.

Gets supported authentication methods for this connection.

public TimeSpan ChannelCloseTimeout { get; set; }

Gets or sets the timeout to use when waiting for a server to acknowledge closing a channel.

public IDictionary<string, RequestInfo> ChannelRequests { get; }

Gets the supported channel requests for this connection.

public string ClientVersion { get; }

Gets the client version.

public IDictionary<string, Type> CompressionAlgorithms { get; }

Gets supported compression algorithms for this connection.

public string CurrentClientCompressionAlgorithm { get; }

Gets the current client compression algorithm.

public string CurrentClientEncryption { get; }

Gets the current client encryption.

public string CurrentClientHmacAlgorithm { get; }

Gets the current client hash algorithm.

public string CurrentHostKeyAlgorithm { get; }

Gets the current host key algorithm.

public string CurrentKeyExchangeAlgorithm { get; }

Gets the current key exchange algorithm.

public string CurrentServerCompressionAlgorithm { get; }

Gets the current server compression algorithm.

public string CurrentServerEncryption { get; }

Gets the current server encryption.

public string CurrentServerHmacAlgorithm { get; }

Gets the current server hash algorithm.

public Encoding Encoding { get; set; }

Gets or sets the character encoding.

public IDictionary<string, CipherInfo> Encryptions { get; }

Gets supported encryptions for this connection.

public IDictionary<string, HashInfo> HmacAlgorithms { get; }

Gets supported hash algorithms for this connection.

public string Host { get; }

Gets connection host.

public IDictionary<string, Func<byte[], KeyHostAlgorithm>> HostKeyAlgorithms { get; }

Gets supported host key algorithms for this connection.

public bool IsAuthenticated { get; }

Gets a value indicating whether connection is authenticated.

public IDictionary<string, Type> KeyExchangeAlgorithms { get; }

Gets supported key exchange algorithms for this connection.

public int MaxSessions { get; set; }

Gets or sets maximum number of session channels to be open simultaneously.

public int Port { get; }

Gets connection port.

public string ProxyHost { get; }

Gets proxy connection host.

public string ProxyPassword { get; }

Gets proxy connection password.

public int ProxyPort { get; }

Gets proxy connection port.

public ProxyTypes ProxyType { get; }

Gets proxy type.

public string ProxyUsername { get; }

Gets proxy connection username.

public int RetryAttempts { get; set; }

Gets or sets number of retry attempts when session channel creation failed.

public string ServerVersion { get; }

Gets the server version.

public TimeSpan Timeout { get; set; }

Gets or sets connection timeout.

public string Username { get; }

Gets connection username.

Occurs when authentication banner is sent by the server.

public ConnectionInfo(string host, string username, AuthenticationMethod[] authenticationMethods)

Initializes a new instance of the ConnectionInfo class.

public ConnectionInfo(string host, int port, string username, AuthenticationMethod[] authenticationMethods)

Initializes a new instance of the ConnectionInfo class.

public ConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, AuthenticationMethod[] authenticationMethods)

Initializes a new instance of the ConnectionInfo class.