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

PrivateKeyAuthenticationMethod

Provides functionality to perform private key authentication.

Gets the key files used for authentication.

public PrivateKeyAuthenticationMethod(string username, PrivateKeyFile[] keyFiles)

Initializes a new instance of the PrivateKeyAuthenticationMethod 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