Is it possible to combine Password and Google Auth code?

Posted December 10, 2020 149 views


I tried to set up a combination of password and Google’s PAM but it didn’t work.

Without adding:
‘AuthenticationMethods publickey,password publickey,keyboard-interactive’
to /etc/ssh/sshd_config
I was allowed to login with just the Google Auth code, but wasn’t asked for the password.

With that line added I got 'Permission denied’.

So I guess it’s the 'AuthenticationMethods’ line that is failing (since it specifically includes publickey, which I don’t use). I tried to edit it in various wayd but without success. How should it be written in order to ask for pw and Google Auth code?

Best wishes!

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!