Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

We can generate TOTP using this Python script but need to create/add and then extract the secure key first usinghttps://raivo-otp.com/ Remember the master password during RAIVO App installation, it will be used to encrypt the exported .zip

IMG_8950.jpg

Save/export the resulted password protected (with RAIVO master password) .zip file with secret code

#!/usr/bin/env python
import pyotp

secret_key = "ZDXXXXXXXXXXXXXXXXXXXXXXXXXXYYYG"
totp = pyotp.TOTP(secret_key)
otp_code = totp.now()
print(f"{otp_code}")

Save this script as ./get-token.py

chmod og-rwx ./get-token.py
cmod o+x ./get-token.py

Testing

./get-token.py                    
081482

Using TOTP via --totp

echo "Y" |  vss  --wait  -e cloud-api-dev   --totp $(./get-token.py)  compute inventory mk --all --fmt csv

  • No labels