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

Renci.SshNet.KeyboardInteractiveAuthenticationMethod

Provides functionality to perform keyboard interactive authentication.
namespace Renci.SshNet { public abstract class AuthenticationMethod : IAuthenticationMethod { public abstract string Name { get; } public string Username { get; } public string[] AllowedAuthentications { get; set; } protected AuthenticationMethod(string username); public abstract AuthenticationResult Authenticate(Session session); } } namespace Renci.SshNet { public class KeyboardInteractiveAuthenticationMethod : AuthenticationMethod, IDisposable { public event EventHandler<AuthenticationPromptEventArgs> AuthenticationPrompt; public KeyboardInteractiveAuthenticationMethod(string username); public void Dispose(); protected virtual void Dispose(bool disposing); } }