0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドラインでMFA

Last updated at Posted at 2018-05-02
oathtool -b --totp [token]

少し先まで出す(zshの場合)

MFA_DATA=$(oathtool -b -w 1 --totp [token]); MFA_NOW=$(echo $MFA_DATA | head -1); MFA_NEXT=$(echo $MFA_DATA | tail -1); echo $MFA_NOW and $MFA_NEXT after $((30 - $(date +%s) % 30)) seconds
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?