VSS: using TOTP in vss cli scripting
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
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-totp.py
chmod og-rwx ./get-totp.py
cmod o+x ./get-totp.py
Testing
./get-totp.py
081482
Using TOTP via --totp
echo "Y" | vss --wait -e cloud-api-dev --totp $(./get-totp.py) compute inventory mk --all --fmt csv
, multiple selections available,
Related content
Configure the vss-cli
Configure the vss-cli
More like this
Multi Factor Authentication with Time-based One-Time Password (TOTP) with the vss-cli
Multi Factor Authentication with Time-based One-Time Password (TOTP) with the vss-cli
More like this
Run the vss-cli in Docker
Run the vss-cli in Docker
More like this
How to generate VSS API access token using Python
How to generate VSS API access token using Python
Read with this
How-to Deploy an Ubuntu Server or AlmaLinux instance with the vss-cli
How-to Deploy an Ubuntu Server or AlmaLinux instance with the vss-cli
More like this
Multi Factor Authentication with Time-based One-Time Password (TOTP)
Multi Factor Authentication with Time-based One-Time Password (TOTP)
More like this
University of Toronto - Since 1827