Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Generating MFA from terminal
- ## MFA secret is encrypted using gpg and saved to ~/.iam_mfa_<target_name>.gpg
- mfagen() {
- local mfasecret=$(gpg --quiet --decrypt ~/.iam_mfa_<target_name>.gpg | base64 --decode -)
- oathtool --totp -b $mfasecret | clip
- }
Add Comment
Please, Sign In to add comment