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

PrivateKeyConnectionInfo

Provides connection information when private key authentication method is used

Gets the key files used for authentication.

public PrivateKeyConnectionInfo(string host, string username, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, int port, string username, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PasswordConnectionInfo class.

public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PasswordConnectionInfo class.

public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PasswordConnectionInfo class.

public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PasswordConnectionInfo class.

public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PasswordConnectionInfo class.

public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PasswordConnectionInfo class.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

protected virtual void Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources