ga: Google Authenticator in the Shell
Generate two factor authentication codes that are compatible with Google Authenticator (a.k.a. RFC6238 TOTP) from the shell.
Just download and install
somewhere on your path (e.g.,
- xclip - to send login codes to the X clipboard instead of stdout
- zbar - to parse QR codes from screen with -c option
- qrencode, imagemagick - to display QR codes with -v option
ga [-x]service - get token for service
ga -[x]cservice - record seed for new service
ga -[x]vservice - view qrcode for service
ga -l- list services setup
-xv flags disable use of X11 even when
$DISPLAY is set, compared to no option,
OS X and GPG Tools
Mac OS X users may be using the GPG Tools
distribution. For some strange reason, this package doesn't detect
when you are running in a terminal session without a display (e.g.,
SSH), so by default, it always launches a GUI for key entry. Which
ga impossible to use over SSH on OS X.
To fix this, you'll want to tell it to uses a curses display for passpharse entry:
A good way to decide when to export this variable is by detecting it
SSH_CONNECTION is a non-empty string.
We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.
Please report bugs via the github issue tracker.
Master git repository:
git clone git://github.com/scslab/ga.git