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

AuthenticationMethod

public abstract class AuthenticationMethod
Base class for all supported authentication methods
public IEnumerable<string> AllowedAuthentications { get; protected set; }

Gets list of allowed authentications.

public string ErrorMessage { get; }

Gets the authentication error message.

public abstract string Name { get; }

Gets authentication method name

public string Username { get; }

Gets connection username.

protected AuthenticationMethod(string username)

Initializes a new instance of the AuthenticationMethod class.

public abstract AuthenticationResult Authenticate(Session session)

Authenticates the specified session.