SSH 2FA
Configuring SSH
To make SSH use the Google Authenticator PAM module, add the following line to the /etc/pam.d/sshd file
Modify /etc/ssh/sshd_config
change ChallengeResponseAuthentication rom no
to yes
so this part of the file looks like this
Configuring authentication
It will ask you a series of questions (recommended configuration)
Make tokens “time-base””: yes
Update the .google_authenticator file: yes
Disallow multiple uses: yes
Increase the original generation time limit: no
Enable rate-limiting: yes
You will get secret key that you will then use to add to the Auth App