Find the OTP pin in your terminal

I have alway an opened terminal in front of my eyes, rarely my phone, so I found helpful to retrieve my OTP pin with a bash command

# yum install oathtool

the secret can be find in the home of your user:

$ cat ~/.2fa.secret

then you can create a bash file with this, think to chmod 700 <file>

#/usr/bin/bash

/usr/bin/oathtool --totp <hexKey>
6 Likes

Great, but don’t we have an application where you can have it handy all the OTPs and also able to share in a group?

Thanks,

take a look to ns8-passbolt please, not yet sure but I think it is close to match the need

1 Like