Set up 2FA for linux account

Hello,
I have readen that it is possible to make 2FA for Linux SSH system. But does it possible to make 2FA for a user on Ubuntu? Is there something to install for that? That means instead of username and password scan a QR Code and provide 2FA code to login to your ubuntu user account? It could be more secure instead of crame password.

You simply need Display manager with Google Authenticator
it needs to be implemented into the display manager such as > sddm gdm3 lightdm etc

1 Like

You are on point with the idea of using a display manager with Google Authenticator. Google Authenticator allows the Display Manager to integrate with it to authenticate login credentials. If the username and password is passed, the Goggle Authenticator would generate an additional code on the user’s phone and prompt that the user should enter the code.

The Display Manager would then transmit the code put in to Google Authenticator for verification before access is granted.

1 Like

Did anyone know some integration of MFA into a Display Manager?

@toadie you can use the YubiKey. from Sweden I have used it for everything but i lost it few months ago in a local function and since then i am using the Authenticator for all logins. Yubi Key is from Sweden and that is a must and i am going to use that again. You can add that also to your Linux login just like Mac finger scan.

1 Like