- Add TOTP keys to a yaml file in
~/.mfa
. For example:
aws: k4ur lrri br6f mbzo l6dv gyx5 u2yg cd7n
google: 25gq xtax hzoz wsxe c7pd 34pf 44dq abzl
- Copy the
mfa.py
script to~/bin
(or elsewhere, adjusting your alias appropriately). - Create the alias
alias mfa="~/bin/mfa.py --config=~/.mfa"
in~/.bashrc
,~/.zshrc
, or wherever it can be sourced conveniently. - Test usage:
> mfa list
aws
google
> mfa token aws
869723