Back to product page

LoginChallengeEvent event


Fires when wodSSH.NET receives public key from the server.

Syntax

  • C#
  • VB.NET
delegate void LoginChallengeDelegate(object Sender, LoginChallengeArgs Args);
The LoginChallengeEvent(Args.Prompt,Args.Response) syntax has these parts:
Args.PromptString. Challenge prompt requested by the server.
Args.ResponseString. Response you should provide.

Delegate Sub LoginChallengeDelegate(ByVal Sender As Object, ByVal Args As LoginChallengeArgs)
The LoginChallengeEvent(Args.Prompt,Args.Response) syntax has these parts:
Args.PromptString. Challenge prompt requested by the server.
Args.ResponseString. Response you should provide.

Remarks

The LoginChallenge event will fire when wodSSH.NET tries to use KeyboardInteractive authentication. This type of authentication is selected when you set Authentication = AuthPassword (or AuthAny by default) but password authentication fails. In this case wodSSH.NET tries KeyboardInteractive authentication (if available on the server) where the server sends a 'challenge' request that is shown on the user's screen and you must answer with the proper response in order to be authenticated.

Often, the server just sends something like 'please enter your password', but on some configurations this can be virtually any question. For example, the server may ask you to enter a one-time-password or your token ID.

Platforms

Windows