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 revisionBoth sides next revision
2fa [2024/05/03 18:09] – -formatting, condense hogwild2fa [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 the steps:+Now, run google-auth setup and follow the steps:
  
     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) to the /opt/etc directory:
  
     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 /opt/etc/.google_authenticator     chmod 0600 /opt/etc/.google_authenticator
Line 110: Line 110:
  \\  \\
  
-Now you should be able to start the sshd service:+Nowyou should be able to start the sshd service:
  
     /opt/etc/init.d/S40sshd start     /opt/etc/init.d/S40sshd start
Line 116: Line 116:
  \\  \\
  
-Now, test it from the LAN side:+Next, test it from the LAN side:
  
     ssh -p 2222 root@<lan-ip-of-tomato-router>     ssh -p 2222 root@<lan-ip-of-tomato-router>
  
-The following text should be output:+You should see the following output:
  
     The authenticity of host '[192.168.1.1]:2222 ([192.168.1.1]:2222)' can't be established.     The authenticity of host '[192.168.1.1]:2222 ([192.168.1.1]:2222)' can't be established.
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 (not covered here).+You can now expose port 2222 (or the port you configured) to the Internet (not covered here).
  
  \\  \\
2fa.txt · Last modified: 2024/05/03 18:40 by hogwild