Guest User

Untitled

a guest
Oct 12th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment