Site Tools


2fa

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
2fa [2024/10/28 15:07] hogwild2fa [2025/08/13 04:51] (current) – -Change to: "The default file location is /opt/etc/environment" hogwild
Line 13: Line 13:
  \\  \\
  
-If this complete without all dependencies, make sure to install any necessary ones.\\+If this completes without all dependencies, make sure to install any necessary ones.\\
  
  \\  \\  \\  \\
Line 22: Line 22:
  
  \\  \\
 +
     #!/bin/sh     #!/bin/sh
  
Line 49: 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"/opt/etc/ssh/sshd_config:
- +
- \\ +
- +
-Next, run /opt/etc/ssh/sshd_config and change the following from the defaults:+
  
  \\  \\
Line 161: 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 port) to the Internet. .
  
  \\  \\
 +
 +The default file location is: "/opt/etc/environment"
  
  \\  \\
  
-PS - /opt/etc/environment is the default - only comments - so nothing to change - maybe a "touch /etc/environment" should have been enough+ \\
  
  
2fa.1730128040.txt.gz · Last modified: by hogwild