google / google-authenticator-libpam

Apache License 2.0
1.75k stars 280 forks source link

Implement 2FA for Raspberry Pi #236

Open Manikandanrama opened 8 months ago

Manikandanrama commented 8 months ago

i am trying to enable 2FA in my raspberry pi board i have added google-authenticator-libpam to my build. I have followed these steps, which are mentioned below.

1.Added google-authenticator-libpam pack in my build 2.add the auth equired pam_google_authenticator.so nullok line in sshd file which is located in the /etc/pam.d/ directory 3.set the value yes to KbdInteractiveAuthentication in the sshd_config file which is located in the /etc/sshd/ directory 4.Generate the code and done as per guidance

but here 2FA is not enabled. shall i need more configuration?

ThomasHabets commented 8 months ago
  1. What's a "build"?
  2. I assume the typo is not in your actual config?
  3. Did you restart SSH, or reload its config?
  4. What's "as per guidance"? You may have done it right, but clearly at least one thing in your config is wrong.

What do log files say?

How did you manage to file this bug without following the templates? The templates are there for a reason (e.g. the questions I asked), so is there a way to file this issue without being asked for a template?

Manikandanrama commented 8 months ago

@ThomasHabets Do you mean Authentication type?

ThomasHabets commented 8 months ago

I mean equired.

Please edit your bug filling in everything from the template.