Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Oct 12th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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