How to Enable 2FA for SSH Logins on Rocky Linux, CentOS or RHEL
Вставка
- Опубліковано 30 чер 2024
- Learn how to config your Rocky Linux 8, CentOS 8 or RHEL 8 server such that it prompts for a two-factor authentication when you login via SSH key.
0:00 Intro
2:03 Installing the necessary libraries
3:52 Setting up Google authenticator
7:00 Changes to sshd
8:22 Changes to pam.d
9:55 Testing the new config
10:49 Summary
WHO AM I:
I'm Bernhard, a software engineer working in Vienna, Austria. I make videos about technology, productivity and engineering. - Наука та технологія
This was an exceptionally helpful tutorial. Previously, I was using 'password + 2FA' on our servers, but this got me to our next implementation step of 'public key + 2FA' and cutting out password authentication completely. Definitely sound advice to make sure your public key is installed and functioning for SSH authentication before following these steps! Thanks!
Thank you so much for the tutorial, It really helped!
Spot on dude.... Thanks ✊
Hello all, the video is very helpful. What can I do different with the configuration files if I want to use password+2FA? Thank you!