Skip to content

improve keyboard-interactive multi-steps #632

@xiaosunzhu

Description

@xiaosunzhu

I have encountered a very inconvenient situation about keyboard-interactive.

  1. open session, enter username, prompt "YubiKey ....." on keyboard-interactive pop-up
  2. input yubikey, and next, according to the rule, need input account password, but nothing is responding on keyboard-interactive pop-up
  3. delete key in the input box manually, then input password and next, authetication success
...
[2022-04-02 11:31:55] ssh_packet_userauth_pk_ok: Received SSH_USERAUTH_PK_OK/INFO_REQUEST/GSSAPI_RESPONSE
[2022-04-02 11:31:55] ssh_packet_userauth_pk_ok: keyboard-interactive context, assuming SSH_USERAUTH_INFO_REQUEST
[2022-04-02 11:31:55] ssh_packet_userauth_info_request: 1 keyboard-interactive prompts
...
[2022-04-02 11:31:59] ssh_userauth_kbdint_send: Sending keyboard-interactive response packet
...
[2022-04-02 11:31:59] ssh_packet_userauth_pk_ok: Received SSH_USERAUTH_PK_OK/INFO_REQUEST/GSSAPI_RESPONSE
[2022-04-02 11:31:59] ssh_packet_userauth_pk_ok: keyboard-interactive context, assuming SSH_USERAUTH_INFO_REQUEST
[2022-04-02 11:31:59] ssh_packet_userauth_info_request: 1 keyboard-interactive prompts
...
[2022-04-02 11:32:07] ssh_userauth_kbdint_send: Sending keyboard-interactive response packet
...
[2022-04-02 11:32:07] ssh_packet_userauth_pk_ok: Received SSH_USERAUTH_PK_OK/INFO_REQUEST/GSSAPI_RESPONSE
[2022-04-02 11:32:07] ssh_packet_userauth_pk_ok: keyboard-interactive context, assuming SSH_USERAUTH_INFO_REQUEST
[2022-04-02 11:32:07] ssh_packet_userauth_info_request: 0 keyboard-interactive prompts
...
[2022-04-02 11:32:07] ssh_userauth_kbdint_send: Sending keyboard-interactive response packet
...
[2022-04-02 11:32:07] ssh_packet_userauth_success: Authentication successful
[2022-04-02 11:32:07] ssh_packet_userauth_success: Received SSH_USERAUTH_SUCCESS
...

Another little suggestion: why not save username for session?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions