pass
A Linux CLI tool to store and manage passwords.
OTP
Generating 2FA tokens with pass requires otp extension.
First, decode the QR code qr.png
by running zbarimg -q qr.png
from the terminal - this requires the zbar-tools
package. Copy the string right after QR-Code:.
Then run pass otp add abc
where abc
is the name for this OTP e.g. work, gmail etc. Paste the clipboard items, and then use pass otp abc
to generate them - it will ask for passphrase of the GPG keys.
To automatically copy the OTP token to your clipboard, run pass otp -c abc
.