2fa_linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 2fa_linux [2022/10/11 19:38] – chris | 2fa_linux [2024/10/29 22:58] (current) – admin | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| **NOTE:** It is possible to have multiple servers using the same code generated by your phone without adding multiple accounts. Simply replace the content of the file ''/ | **NOTE:** It is possible to have multiple servers using the same code generated by your phone without adding multiple accounts. Simply replace the content of the file ''/ | ||
| - | To use the Google 2 Factor Authenticator also in your Webmin do the following: | + | **To use the Google 2 Factor Authenticator also in your Webmin do the following:** |
| '' | '' | ||
| + | |||
| + | Then do: | ||
| + | |||
| + | nano / | ||
| + | auth required pam_google_authenticator.so | ||
| + | |||
| + | Restart the Webmin Service with: | ||
| + | |||
| + | | ||
| + | |||
| + | Shoud you have any login problems in Webmin, reset your password with: | ||
| + | |||
| + | cd / | ||
| + | | ||
| + | | ||
| If you like to disable 2FA, just comment out '' | If you like to disable 2FA, just comment out '' | ||
| in ''/ | in ''/ | ||
| + | |||
| + | **USE THIS IF YOU JUST WANT TO HAVE SSH 2FA AUTHENTICATION** | ||
| *If you just want to enable 2FA for ssh not interfering with other applications do the following:* | *If you just want to enable 2FA for ssh not interfering with other applications do the following:* | ||
| Line 67: | Line 84: | ||
| nano / | nano / | ||
| - | < | + | |
| auth required pam_unix.so no_warn try_first_pass | auth required pam_unix.so no_warn try_first_pass | ||
| auth required pam_google_authenticator.so | auth required pam_google_authenticator.so | ||
| Line 73: | Line 90: | ||
| nano / | nano / | ||
| | | ||
| - | <del>PasswordAuthentication yes</ | + | |
| - | <del>AuthenticationMethods keyboard-interactive</ | + | |
| + | | ||
| | | ||
2fa_linux.1665509931.txt.gz · Last modified: 2022/10/11 19:38 by chris
