This utility enables simple "google authenticator" style timed OTP generation from linux command line.
Keys are stored GPG encryped in $HOME/.2fa/
oathtool, gpg
Export following variables in your shell startup script:
TOTP_UID
- GPG User ID for key encrypt/decryptTOTP_KID
- GPG Key ID for key encrypt/decryptTOTP_BASE
- (Optional) Set to override default key storage location with absolute path
Place totptool on PATH, probably?
On the off-chance that you use fish shell, install totptool.fish to $HOME/.config/fish/completions to enable tab completions
totptool add
- Add service (interactive)totptool gen <service>
- Generate timed OTP for servicetotptool gen <service> --scriptable
- Generate timed otp for service with script-friendly outputtotptool list
- List services