Skip to content

4fthawaiian/jc2fa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command line 2fa

This is very specifically geared to my use case (lastpass to store keys, and SSO/2FA via jumpcloud, bash on mac os). It would be pretty easy to adapt to other situations/requirements, though. I'm hoping others can use it as a reference to build on so they don't have to resort to using their phones for 2fa all of the time.

Requirements

Setup

  • replace jctotp with whatever your string is named in lastpass in jc2fa script
  • replace lastpass@mccroreys.com with your lastpass username in getpwd script
  • place both files in ~/bin and make sure the directory is in your path
  • store the key for your jumpcloud 2fa in lastpass (I use the string jctotp for mine, but whatever works).
  • You can generate a new string in the jumpcloud console (Security -> "Reset TOTP")

Note:

You will need to use your lastpass password to retrieve the key for the jc2fa script. The session will last for a while,but I generally have to enter my password several times in a day's work.

About

Command line tool for 2fa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages