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

Renci.SshNet.PrivateKeyAuthenticationMethod

Provides functionality to perform private key authentication.
namespace Renci.SshNet { public class PrivateKeyAuthenticationMethod : AuthenticationMethod, IDisposable { public ICollection<PrivateKeyFile> KeyFiles { get; } public PrivateKeyAuthenticationMethod(string username, params PrivateKeyFile[] keyFiles); public void Dispose(); protected virtual void Dispose(bool disposing); } }