This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
2fa [2024/10/28 15:00] – -Formatting hogwild | 2fa [2025/08/13 04:51] (current) – -Change to: "The default file location is /opt/etc/environment" hogwild | ||
---|---|---|---|
Line 5: | Line 5: | ||
These are simple configuration notes, and not intended to be a complete HOWTO. This setup uses openssh with google-authenticator as 2-Factor Authentication. Only the " | These are simple configuration notes, and not intended to be a complete HOWTO. This setup uses openssh with google-authenticator as 2-Factor Authentication. Only the " | ||
- | Next, install | + | Install |
\\ | \\ | ||
Line 13: | Line 13: | ||
\\ | \\ | ||
- | Hopefully, | + | If this completes without |
- | \\ Next, enable openssh-server . This is not covered here.\\ \\ | + | |
- | \\ | + | Next, enable openssh-server . This is not covered here. |
- | Configure the correct settings in configuration file / | + | \\ \\ Configure the correct settings in configuration file / |
+ | |||
+ | \\ | ||
#!/bin/sh | #!/bin/sh | ||
Line 48: | Line 50: | ||
\\ | \\ | ||
- | The new service must be enabled at boot time as well: | + | The new service must be enabled at boot time as well. Make the following changes to the file: "/ |
- | + | ||
- | \\ | + | |
- | + | ||
- | Next, run / | + | |
\\ | \\ | ||
Line 160: | Line 158: | ||
| Verification code: | | Verification code: | ||
- | \\ If you see this, it means that 2FA is the only authentication operating. You can now expose port 2222 (or the port you configured) to the Internet. . | + | \\ If you see this, it means that 2FA is the only authentication operating. You can now expose port 2222 (or your configured |
\\ | \\ | ||
+ | |||
+ | The default file location is: "/ | ||
\\ | \\ | ||
- | PS - / | + | \\ |