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/05/03 18:34] – Add: "After typing "y" for yes, you should see the following:" hogwild2fa [2024/05/03 18:40] (current) hogwild
Line 54: Line 54:
 The new service must be enabled at boot time as well: The new service must be enabled at boot time as well:
  
-/opt/etc/ssh/sshd_config (most likely only what's changed from the default)+ \\ 
 + 
 +Next, run /opt/etc/ssh/sshd_config and change the following from the defaults:
  
     Port 2222 # to be changed if desired     Port 2222 # to be changed if desired
Line 65: Line 67:
     HostKey /opt/etc/ssh/ssh_host_rsa_key     HostKey /opt/etc/ssh/ssh_host_rsa_key
     HostKey /opt/etc/ssh/ssh_host_ed25519_key     HostKey /opt/etc/ssh/ssh_host_ed25519_key
 +
 + \\
  
 grep -v "#" /opt/etc/pam.d/sshd grep -v "#" /opt/etc/pam.d/sshd
Line 116: Line 120:
  \\  \\
  
-Next, test the configuration from the LAN side:+Next, test the configuration from the LAN side by typing the following at the command prompt:
  
     ssh -p 2222 root@<lan-ip-of-freshtomato-router>     ssh -p 2222 root@<lan-ip-of-freshtomato-router>
  
-You should see the following output:+You should see the following:
  
     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 129: Line 133:
  \\  \\
  
-After typing "y" for yes, you should see the following:+After typing Yes, you should see the following:
  
     Keyboard-interactive authentication prompts from server:     Keyboard-interactive authentication prompts from server:
     | Verification code:     | Verification code:
  
-If you see this, it means that exclusively 2FA authentication is operating.+If you see this, it means that 2FA is the only authentication operating.
  
  \\  \\
2fa.1714757676.txt.gz · Last modified: 2024/05/03 18:34 by hogwild