Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.18 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.18 KB

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.