This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
2fa [2024/05/03 18:09] – -formatting, condense hogwild | 2fa [2024/05/03 18:21] – changed to "it means that only 2FA authentication is operating" hogwild | ||
---|---|---|---|
Line 90: | Line 90: | ||
\\ | \\ | ||
- | Now, run the google-auth setup and go through | + | Now, run google-auth setup and follow |
google-authenticator | google-authenticator | ||
Line 98: | Line 98: | ||
\\ | \\ | ||
- | Now, move its config file to the /opt/etc directory: | + | Next, move its config file (.google_authenciator) |
mv .google_authenticator /opt/etc/ | mv .google_authenticator /opt/etc/ | ||
Line 104: | Line 104: | ||
\\ | \\ | ||
- | Verify the permissions on the file are 0600 . This is very important. | + | Next, Verify the permissions on the file are 0600 . This is very important. |
chmod 0600 / | chmod 0600 / | ||
Line 110: | Line 110: | ||
\\ | \\ | ||
- | Now you should be able to start the sshd service: | + | Now, you should be able to start the sshd service: |
/ | / | ||
Line 116: | Line 116: | ||
\\ | \\ | ||
- | Now, test it from the LAN side: | + | Next, test it from the LAN side: |
ssh -p 2222 root@< | ssh -p 2222 root@< | ||
- | The following text should | + | You should |
The authenticity of host ' | The authenticity of host ' | ||
Line 134: | Line 134: | ||
| Verification code: | | Verification code: | ||
- | If you see this, it means that only 2FA authentication is working. | + | If you see this, it means that only 2FA authentication is operating. |
\\ | \\ | ||
- | You can now expose port 2222 (or the port you configured) to the Iinternet | + | You can now expose port 2222 (or the port you configured) to the Internet |
\\ | \\ |