Skip to content

Instantly share code, notes, and snippets.

@mehmetboraezer
Last active November 15, 2020 17:26
Show Gist options
  • Save mehmetboraezer/d11a79613779043c78e7751a68dec4ff to your computer and use it in GitHub Desktop.
Save mehmetboraezer/d11a79613779043c78e7751a68dec4ff to your computer and use it in GitHub Desktop.
google authenticator alternative for cli

This flow is used to generate passcode on command-line in two-step verification.

OSX

  • Install brew

  • Install oath

    brew install oath-toolkit
    
  • Get secret key from provider

  • Get code

    oathtool --totp -b <secret_key> | tr -d '\n' | pbcopy
    
  • Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment