daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Oct 12th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Generating MFA from terminal
  2. ## MFA secret is encrypted using gpg and saved to ~/.iam_mfa_<target_name>.gpg
  3.  
  4. mfagen() {
  5.   local mfasecret=$(gpg --quiet --decrypt ~/.iam_mfa_<target_name>.gpg | base64 --decode -)
  6.   oathtool --totp -b $mfasecret | clip
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top