Security News > 2021 > May > How to enable SSH 2FA on AlmaLinux for more secure logins

How to enable SSH 2FA on AlmaLinux for more secure logins
2021-05-27 17:28

If you've started rolling out AlmaLinux to your data centers, you should enable 2FA for SSH authentication.

One way to beef up the security of any Linux server is to enable two-factor authentication for SSH logins.

How to configure SSH and PAM. The first thing we must do is configure the SSH daemon.

I'm going to show you how to configure this for standard password/2FA and SSH key/2FA. The most secure method is using the SSH key authentication and 2FA combination.

Sudo systemctl restart sshd How to login with 2FA. When you attempt to log in to your AlmaLinux server, you will either be prompted for your user password and a 2FA code or your SSH key passphrase and a 2FA code.

Understand, this means anytime you need to SSH into your AlmaLinux server, you'll need your mobile device handy, so you can generate the six-digit 2FA code.


News URL

https://www.techrepublic.com/article/how-to-enable-ssh-2fa-on-almalinux-for-more-secure-logins/#ftag=RSS56d97e7

Related vendor

VENDOR LAST 12M #/PRODUCTS LOW MEDIUM HIGH CRITICAL TOTAL VULNS
SSH 10 2 10 10 3 25