Rocky Linux 9: Multi-Factor Authentication with SSH
- 2025.03.07
- リモートワークセキュリティ

🔐 Secure SSH with Google Authenticator MFA on Rocky Linux 9! (Step-by-Step Guide) 🚀
Are you looking to harden your Rocky Linux 9 server against unauthorized access? In this step-by-step tutorial, I’ll show you how to set up Multi-Factor Authentication (MFA) with Google Authenticator for SSH logins. 🔥
💡 What You’ll Learn:
✅ How to install and configure Google Authenticator
✅ How to enable MFA for SSH authentication
✅ How to secure your Linux system with password + MFA authentication
🔒 By the end of this video, you’ll have a fully functional MFA setup for SSH, ensuring your server stays protected from unauthorized logins.
📌 Commands Used in This Video:
sudo dnf install epel-release -y
sudo dnf install google-authenticator -y
google-authenticator -s ~/.ssh/google
sudo vim/etc/pam.d/sshd
sudo vim /etc/ssh/sshd_config.d/10-mfa.com
sudo systemctl restart sshd
sudo sshd -T | grep authentication
⏱️ Timestamps:
00:00 Intro – Why MFA is Essential for SSH
01:50 Installing Google Authenticator on Rocky Linux 9
04:31 Add group to use MFA
05:18 Configure SSHD
07:39 Configure PAM
09:23 Testing MFA for SSH
👍 Like & Subscribe if you found this helpful—more Linux security tutorials coming soon!
Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Authors/Details/andrew-mallett and take time to see my own site http://www.theurbanpenguin.com
-
前の記事
DeFi Kingdoms AMA 2025.03.07
-
次の記事
DE.FI – MOST REPUTABLE DEFI PROJECT BACKED BY DONALD TRUMP JR. 2025.03.07