Install Google Authenticator for Fedora
If you set up 2-step verification using SMS text message or Voice call and also want to be able to generate codes using the Android, iPhone or a Blackberry, you can use the Google Authenticator app to receive codes even if you don’t have an Internet connection or mobile service.
Prerequisite :-
Android Phone.
Barcode scanner.
Google Authenticator App on Phone.
On Laptop as Follow.
[root@localhost rajat]# yum install google-authenticator -y
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package google-authenticator-1.0-0.gita096a62.fc19.1.x86_64 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================
Package Arch Version Repository Size
================================================================================================================
Installing:
google-authenticator x86_64 1.0-0.gita096a62.fc19.1 fedora 33 k
Transaction Summary
================================================================================================================
Install 1 Package
Total download size: 28 k
Installed size: 56 k
Downloading Packages:
google-authenticator-1.0-0.gita096a62.fc19.1.x86_64.rpm | 33 kB 00:00:07
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : google-authenticator-1.0-0.gita096a62.fc19.1.x86_64 1/1
Verifying : google-authenticator-1.0-0.gita096a62.fc19.1.x86_64 1/1
Installed:
google-authenticator-1.0-0.gita096a62.fc19.1.x86_64
Complete!
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package google-authenticator-1.0-0.gita096a62.fc19.1.x86_64 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================
Package Arch Version Repository Size
================================================================================================================
Installing:
google-authenticator x86_64 1.0-0.gita096a62.fc19.1 fedora 33 k
Transaction Summary
================================================================================================================
Install 1 Package
Total download size: 28 k
Installed size: 56 k
Downloading Packages:
google-authenticator-1.0-0.gita096a62.fc19.1.x86_64.rpm | 33 kB 00:00:07
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : google-authenticator-1.0-0.gita096a62.fc19.1.x86_64 1/1
Verifying : google-authenticator-1.0-0.gita096a62.fc19.1.x86_64 1/1
Installed:
google-authenticator-1.0-0.gita096a62.fc19.1.x86_64
Complete!
Add line to following file:-
#vi /etc/pam.d/gdm-password
auth required pam_google_authenticator.so
:wq
Save and close CTRL+D (Become as normal user.)
$
once you type your password next screen you get which is google-authenticator