Changes between Version 2 and Version 3 of NspwUprouse/Agenda/ssh
- Timestamp:
- Sep 5, 2021, 7:31:19 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NspwUprouse/Agenda/ssh
v2 v3 144 144 - Scan the QRcode that appears with the Google Authenticator app or you can add the secret key Google Authenticator app. 145 145 - 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. 147 147 {{{ 148 148 Do you want me to update your "/home/myuser/.google_authenticator" file (y/n) 149 149 150 Do you want to disallow multiple uses of the same authentication 150 151 token? This restricts you to one login about every 30s, but it increases 151 152 your chances to notice or even prevent man-in-the-middle attacks (y/n) 153 152 154 By default, tokens are good for 30 seconds and in order to compensate for 153 155 possible time-skew between the client and the server, we allow an extra … … 155 157 time synchronization, you can increase the window from its default 156 158 size of 1:30min to about 4min. Do you want to do so (y/n) 159 157 160 If the computer that you are logging into isn't hardened against brute-force 158 161 login attempts, you can enable rate-limiting for the authentication module. … … 166 169 sudo vi /etc/pam.d/sshd 167 170 }}} 168 - Add the following line :171 - Add the following line to the bottom: 169 172 {{{ 170 auth required pam_google_authenticator.so 173 auth required pam_google_authenticator.so nullok 174 auth required pam_permit.so 171 175 }}} 172 176 - ''':wq''' Save and quit. … … 175 179 sudo vi /etc/ssh/sshd_config 176 180 }}} 177 - Search for ''' ChallengeResponseAuthentication''' and replace no with yes181 - Search for '''!ChallengeResponseAuthentication''' and replace no with yes 178 182 {{{ 179 183 ChallengeResponseAuthentication yes