Securely automate otp codes: You can use otp codes with any shell command without need phone or app.
npm install -g otpilot
First of all we need secret keys to generate otp codes.
- You can do this with google-author tool.
- Create a command
otpilot create $commandName
Output
Command: echo $otp
Secret: ******
- Run the command
otpilot run $commandName
Output
142857
Secret keys are safe with otpilot because config data encrypted with uniquenv
If you want to use 2fa VPN, you can connect with one command using gotunl
$ otpilot create connect-vpn
Command: gotunl -c 3 -otp $otp
Secret: ******
$ otpilot run connect-vpn
Connecting
Connected