On 4/10/23 11:12, Kushal Kumaran wrote:
Perhaps set AuthenticationMethods to publickey,keyboard-interactive in sshd_config? Do read the full description of that parameter in the manpage for other things that might interest you.
I finally managed to get my desired public key and google authenticator combo
edit /etc/pam.d/sshd and comment out comon-auth|# @include common-auth in /etc/ssh/sshd_config UsePAM yes ||ChallengeResponseAuthentication yes ||PasswordAuthentication no AuthenticationMethods publickey,keyboard-interactive |||||