AuthAttempt Event
Fires when a single authentication attempt is performed.
Syntax
public event OnAuthAttemptHandler OnAuthAttempt; public delegate void OnAuthAttemptHandler(object sender, SshclientAuthAttemptEventArgs e); public class SshclientAuthAttemptEventArgs : EventArgs { public int AuthType { get; } }
Public Event OnAuthAttempt As OnAuthAttemptHandler Public Delegate Sub OnAuthAttemptHandler(sender As Object, e As SshclientAuthAttemptEventArgs) Public Class SshclientAuthAttemptEventArgs Inherits EventArgs Public ReadOnly Property AuthType As Integer End Class
Remarks
This event is fired each time a single authentication attempt is performed. AuthType parameter specifies the type of authentication. Note, this event could be fired more than once if the client tries different authentication methods one after another.