https://github.com/wizardishungry/totp-util
🔑 Generate a 2-Factor Authentication codes and display the QR code from the terminal
https://github.com/wizardishungry/totp-util
2fa oath oathtool openbsd openssh otpauth totp
Last synced: 24 days ago
JSON representation
🔑 Generate a 2-Factor Authentication codes and display the QR code from the terminal
- Host: GitHub
- URL: https://github.com/wizardishungry/totp-util
- Owner: wizardishungry
- License: apache-2.0
- Created: 2016-03-28T22:45:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-04T18:17:09.000Z (about 9 years ago)
- Last Synced: 2025-02-13T08:54:20.060Z (3 months ago)
- Topics: 2fa, oath, oathtool, openbsd, openssh, otpauth, totp
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# totp-util
Generate TOTP 2-Factor Authentication secrets and QR codes for Google Authenticator on the command-line. (It looks nicer in a real terminal!)
```
$ totp-util ~jellob/.totp-key "Holiday Inn" [email protected]
/Users/jellob/.totp-key read
â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
░░██████████████░░░░██░░░░░░██░░░░██░░░░██░░██████░░░░░░████░░██████████████░░
░░██░░░░░░░░░░██░░████░░████░░████░░██░░░░██░░░░░░░░░░░░██░░░░██░░░░░░░░░░██░░
░░██░░██████░░██░░░░██████░░░░░░░░██░░░░░░░░██░░████░░░░░░██░░██░░██████░░██░░
░░██░░██████░░██░░████░░██░░████░░░░░░░░░░██░░██░░██████░░░░░░██░░██████░░██░░
░░██░░██████░░██░░░░░░██░░████░░░░░░░░██░░████░░██░░░░██░░██░░██░░██████░░██░░
░░██░░░░░░░░░░██░░██░░██░░░░██████░░████░░░░████░░░░░░░░████░░██░░░░░░░░░░██░░
░░██████████████░░██░░██░░██░░██░░██░░██░░██░░██░░██░░██░░██░░██████████████░░
░░░░░░░░░░░░░░░░░░░░░░░░░░██░░██████░░░░██░░████░░░░░░░░░░██░░░░░░░░░░░░░░░░░░
░░██████████░░██████████░░████████░░██████░░░░██░░██████░░░░██░░██░░██░░██░░░░
░░░░██████░░░░░░░░░░██░░░░░░░░░░░░██░░██░░████████░░████░░██░░░░██░░░░░░██░░░░
░░░░██░░░░░░██████░░░░████████░░██████░░░░██████░░░░░░░░██░░░░██░░████░░████░░
░░░░░░██░░████░░░░██░░████░░░░████░░░░████████░░████░░██░░░░████░░░░░░░░████░░
░░██████████████░░████████░░████░░░░██░░██░░░░░░░░░░████░░░░████████████████░░
░░██░░░░██░░██░░░░░░░░██░░██░░░░░░██████░░██░░████░░░░██░░██░░░░██░░██████░░░░
░░██░░██░░██░░██░░░░░░██░░░░░░░░████░░██░░██████░░░░██░░██░░██░░██░░██░░████░░
░░░░░░██░░████░░░░░░████░░██░░██████░░░░██░░██████░░░░░░░░░░████░░████░░████░░
░░░░░░░░████████░░░░████░░██████░░░░██░░██░░██████░░████░░██████████░░██░░██░░
░░██░░██░░░░░░░░░░░░████░░░░██░░░░██░░░░░░██░░░░████░░░░░░░░░░░░██░░████░░░░░░
░░██████░░██░░████░░░░██████░░██████████░░██░░██░░██░░░░██░░░░░░░░░░████████░░
░░████░░██░░██░░██████░░██░░░░░░██░░░░░░██████░░░░░░░░██████████░░░░██░░░░██░░
░░░░░░██░░░░░░████░░░░░░██░░░░░░██░░██░░░░██████████████░░░░████████████░░██░░
░░░░██░░░░░░░░░░░░████░░░░████░░░░██░░░░██░░░░████░░██░░░░██░░░░██░░░░████░░░░
░░██░░██░░████████████░░░░░░██████░░████░░░░██░░░░░░░░██████████████░░██████░░
░░██░░██░░██░░░░░░░░██░░░░████░░░░░░░░░░██░░████░░██░░████░░░░████████░░░░██░░
░░██████░░██████░░████░░░░██░░████████░░██░░████░░████████░░░░██░░██████████░░
░░██░░░░░░░░░░░░██░░██░░░░░░░░░░░░██░░░░░░████░░██░░██░░░░██░░░░░░░░░░████░░░░
░░██░░░░████░░██░░░░██░░████░░░░████░░░░░░██░░██░░░░░░░░██████░░░░░░░░██████░░
░░██░░░░████░░░░██░░░░████░░░░████░░░░░░░░░░████████░░██░░░░░░░░░░░░░░░░██░░░░
░░██░░░░░░░░░░████████████░░░░░░░░████░░████░░░░░░██████████████████░░████░░░░
░░░░░░░░░░░░░░░░░░██░░░░░░██████░░██░░██░░████████░░░░░░████░░░░░░██░░░░░░░░░░
░░██████████████░░██░░██░░░░██████░░░░░░░░██████░░░░░░██░░██░░██░░████░░████░░
░░██░░░░░░░░░░██░░░░░░██░░████░░██░░░░░░░░░░██░░██░░░░░░░░██░░░░░░██░░░░██░░░░
░░██░░██████░░██░░██░░░░░░██░░████████░░██░░██████████░░████████████████░░░░░░
░░██░░██████░░██░░██░░░░░░░░░░░░░░██░░░░░░██░░░░██░░██░░░░██████████░░██████░░
░░██░░██████░░██░░██░░██████░░░░████████░░██░░░░░░██████░░██░░░░██░░░░██████░░
░░██░░░░░░░░░░██░░██░░░░██░░░░██████░░██░░░░████░░░░░░░░██████░░░░░░░░░░░░██░░
░░██████████████░░██░░████░░░░░░░░██████░░██████████████░░░░░░████░░░░██████░░
â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
otpauth://totp/Holiday%20Inn:[email protected]?secret=NYG4KQIYJ7KOJQ7C&issuer=Holiday%20Inn
```## Install
```
npm install -g https://github.com/WIZARDISHUNGRY/totp-util
```## Server setup
* [OpenBSD/OpenSSH](https://github.com/WIZARDISHUNGRY/totp-util/wiki/OpenBSD-Guide)## Usage
```
$ totp-util --helpUsage: totp-util [file] [issuer] [user@host]
Options:
-h, --help output usage information
-v, --version output version numberExamples:
$ totp-util
$ totp-util ~mojonixon/.totp-key
$ totp-util ~al/.totp-key "Wax Trax"
$ totp-util ~jellob/.totp-key "Holiday Inn" [email protected]
```## Additional Docs
- [Configuring OpenSSH with OATH and public keys (2 factor authentication)](https://www.insecure.ws/linux/openssh_oath.html)
- [Using google authenticator with OpenBSD SSH logins](http://blog.asleson.org/index.php/2014/04/11/using-google-authenticator-with-openbsd-ssh-logins/)