Changes between Version 2 and Version 3 of NspwUprouse/Agenda/ssh


Ignore:
Timestamp:
Sep 5, 2021, 7:31:19 PM (3 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NspwUprouse/Agenda/ssh

    v2 v3  
    144144 - Scan the QRcode that appears with the Google Authenticator app or you can add the secret key Google Authenticator app.
    145145 - Save the backup codes listed somewhere safe. They will allow you to regain access if you lose your phone with the Authenticator app.
    146  - Next, it will ask several questions; unless you have a good reason to, the defaults presented are sane. Just enter "y" for them.
     146 - Next, it will ask several questions; . Just enter "y" for them.
    147147{{{
    148148Do you want me to update your "/home/myuser/.google_authenticator" file (y/n)
     149
    149150Do you want to disallow multiple uses of the same authentication
    150151token? This restricts you to one login about every 30s, but it increases
    151152your chances to notice or even prevent man-in-the-middle attacks (y/n)
     153
    152154By default, tokens are good for 30 seconds and in order to compensate for
    153155possible time-skew between the client and the server, we allow an extra
     
    155157time synchronization, you can increase the window from its default
    156158size of 1:30min to about 4min. Do you want to do so (y/n)
     159
    157160If the computer that you are logging into isn't hardened against brute-force
    158161login attempts, you can enable rate-limiting for the authentication module.
     
    166169sudo vi /etc/pam.d/sshd
    167170}}}
    168  - Add the following line:
     171 - Add the following line to the bottom:
    169172{{{
    170 auth required pam_google_authenticator.so
     173auth required pam_google_authenticator.so nullok
     174auth required pam_permit.so
    171175}}}
    172176 - ''':wq''' Save and quit.
     
    175179sudo vi /etc/ssh/sshd_config
    176180}}}
    177  - Search for '''ChallengeResponseAuthentication''' and replace no with yes
     181 - Search for '''!ChallengeResponseAuthentication''' and replace no with yes
    178182{{{
    179183ChallengeResponseAuthentication yes