Created
July 16, 2015 12:19
-
-
Save vikas17a/57fab41584a75530e1a4 to your computer and use it in GitHub Desktop.
google-authentication questionnaire automated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RESULT=$(google-authenticator <<! | |
y | |
y | |
y | |
n | |
y | |
! | |
) | |
echo $RESULT | awk '{print "QR Code URL:\n"$10}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how about this?
google-authenticator -s /opt/2factor/aditya -t -d -r5 -R60 -w3