Understand Keyboard Interactive authentication modes
mainWebSSH2 operates in three modes for handling Keyboard Interactive prompts:
- Default (Auto-password):
- If all prompts in a round contain "password" (case-insensitive), WebSSH2 auto-responds with the connection password.
- If any prompt in a round does not contain "password", all prompts in that round are forwarded to the client.
- Subsequent rounds (like 2FA) are always forwarded to the client.
- Server-wide Always Forward: Enabled via
alwaysSendKeyboardInteractivePrompts: true. All prompts in all rounds are sent to the client. - Per-session Always Forward: Enabled by the client via
forwardAllKeyboardInteractivePrompts: truein the authentication credentials. Overrides server defaults for that session only.