A small go program to generate the google authenticator code.
Install go
brew install go
.Setup go
go
is in your shell's path.<workspace_dir>
is the directory in
which you'll checkout your code)GOPATH=<workspace_dir>
export GOPATH
PATH="${PATH}:${GOPATH}/bin"
export PATH
google-authenticator.go
from dummy_secret.pem
to secret.pem
The auth code works on the secret token and the current time. The time on your local machine should be in sync according to NTP.
sudo ntpdate time.nist.gov
to sync timego run google_authenticator.go
. (For MAC users, it will copy the code to clipboard also)