Can I view the secret otp from user root?

Hi is possible from shell view a secret OTP for user root or other user ? I need this key for one programs can’t export data but import or create from secretly . Thank

There’s oathtool for managing OTP from CLI, see also https://www.cyberciti.biz/faq/use-oathtool-linux-command-line-for-2-step-verification-2fa/

Thank you Markus , but I word to read a original secret key .

thank you Mark I’ resolved

1 Like

Great, how did you solve it?

To be honest. I had the problem of the otp on the proxmox cluster, However in the OTP configuration file, there is the key, but to make it work on the program of my interest token wanted a value in sha1. Some users had given me instructions on how to generate the token as you suggested and it works, but I wanted to import the key on a program where it did not include the export and or import of the keys. You just need to convert the key to sha1 .

1 Like