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

PrivateKeyAuthenticationMethod

Provides functionality to perform private key authentication.

Gets the key files used for authentication.

public PrivateKeyAuthenticationMethod(string username, IPrivateKeySource[] 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.