Dan Pastusek's Blog | Home


Generate 2FA Codes using Oathtool on Linux CLI

Published 2023-11-15 Updated: 2023-12-06

apt install oathtool

oathtool --totp -b <CODE>

#Cloudflare, because they're ... different
oathtool --totp -b <CODE> --digits=7 --time-step-size=10