Is there a desktop application for Google authenticator (an equivalent to the phone app, not the PAM lib)?
I like the idea but I have not tested either of these nor would I assume they are secure or even work correctly. This is a summary of my search results, not a recommendation.
You can use some Extension for your web browser, they work pretty good.
Here you go, here's an example:
For Chrome/Chromium/Yandex (and other Chrome based browsers) you can use Authenticator. Just click on "Add to Chrome" button from this link.
Or you can add it through:
Customise and control menu (three dashes/dots upper right corner of the browser) >
Get more extensions (in the bottom of the list) >
Search the store for:
You need to add a Passphrase. This step will allow you to sync multiple instances - transfer of the authentication data between computers which you use with your Google account.
To add an authentication key: First click here to open a demo barcode in your browser. Then follow next steps for: Scan QR code or Manual entry. If the barcode is not generated by some Google application, for most cases you must use only Manual entry. If the authentication code is time based you must use Sync Clock with Google function.
To use the application, just click on the Authenticator icon. Wait for the beginning of a new cycle. Click on the new generated key. It will be copied to the clipboard.
Use the key! Usually you have about a minute and a half to use it.
I'm not so familiar with other browsers, but for example, within Firefox in a similar way you can use Open Two-Factor Authenticator.
In addition, the next answers describe how to implement Two Factor Authentication (using Google Authenticator) within Apache2 and OpenSSH:
You could also try authenticator
To install, just type:
pip3 install authenticator
You could add accounts using
authenticator add MyAccount
At first it will ask you to create data files (say yes), then ask for a password to secure your otp secrets (required). After you confirm your password, it will ask for the secret code to generate the one time password. To generate an OTP:
authenticator gen MyAccount