mumtazhusain commented on issue #283: URL: https://github.com/apache/mina-sshd/issues/283#issuecomment-1343540201
Server side log shows that initial userauth-request with ssh-connection method none is not counted as a failure attempt. However, there are two attempts with ssh-connection method=keyboard-interactive. This is for the client program given in the bug description. I will enable debug logs on the client side to see why do we have this disparity. Dec 8 18:55:55 vm12 sshd[11757]: debug1: userauth-request for user _v_10.0.1.1_v_admin service ssh-connection method none [preauth] **Dec 8 18:55:55 vm12 sshd[11757]: debug1: attempt 0 failures 0 [preauth]** Dec 8 18:55:55 vm12 sshd[11757]: Processing for user _v_10.0.1.1_v_admin. rhost ([10.0.1.1](https://10.0.1.1/)) (8) (_v_admin) Dec 8 18:55:55 vm12 sshd[11757]: username_raw:_v_10.0.1.1_v_admin, username:admin, remote_ip:[10.0.1.1](https://10.0.1.1/) Dec 8 18:55:55 vm12 sshd[11757]: debug1: connection from [127.0.0.1](https://127.0.0.1/) matched 'LocalPort 830' at line 26 Dec 8 18:55:55 vm12 sshd[11757]: debug1: PAM: initializing for "admin" Dec 8 18:55:55 vm12 sshd[11757]: debug1: PAM: setting PAM_RHOST to "[10.0.1.1](https://10.0.1.1/)" Dec 8 18:55:55 vm12 sshd[11757]: debug1: PAM: setting PAM_TTY to "ssh" Dec 8 18:55:55 vm12 sshd[11757]: debug1: userauth_send_banner: sent [preauth] Dec 8 18:55:55 vm12 sshd[11757]: debug1: userauth-request for user _v_10.0.1.1_v_admin service ssh-connection method keyboard-interactive [preauth] **Dec 8 18:55:55 vm12 sshd[11757]: debug1: attempt 1 failures 0 [preauth]** Dec 8 18:55:55 vm12 sshd[11757]: debug1: keyboard-interactive devs [preauth] Dec 8 18:55:55 vm12 sshd[11757]: debug1: auth2_challenge: user=_v_10.0.1.1_v_admin devs= [preauth] Dec 8 18:55:55 vm12 sshd[11757]: debug1: kbdint_alloc: devices 'pam' [preauth] Dec 8 18:55:55 vm12 sshd[11757]: debug1: auth2_challenge_start: trying authentication method 'pam' [preauth] Dec 8 18:55:55 vm12 sshd[11757]: Postponed keyboard-interactive for _v_10.0.1.1_v_admin from [127.0.0.1](https://127.0.0.1/) port 51184 ssh2 [preauth] Dec 8 18:55:55 vm12 sshd[11774]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=[10.0.1.1](https://10.0.1.1/) user=admin Dec 8 18:55:59 vm12 sshd[11757]: error: PAM: Authentication failure for admin from [10.0.1.1](https://10.0.1.1/) Dec 8 18:55:59 vm12 sshd[11757]: Failed keyboard-interactive/pam for admin from [10.0.1.1](https://10.0.1.1/) port 51184 ssh2 Dec 8 18:55:59 vm12 sshd[11757]: debug1: userauth-request for user _v_10.0.1.1_v_admin service ssh-connection method keyboard-interactive [preauth] **Dec 8 18:55:59 vm12 sshd[11757]: debug1: attempt 2 failures 1 [preauth]** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
