Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markuszoppelt/yubikey-otp
Fuzzy search for TOTP (oath) secrets on your YubiKey and copy them to your clipboard.
https://github.com/markuszoppelt/yubikey-otp
otp ykman yubikey
Last synced: about 8 hours ago
JSON representation
Fuzzy search for TOTP (oath) secrets on your YubiKey and copy them to your clipboard.
- Host: GitHub
- URL: https://github.com/markuszoppelt/yubikey-otp
- Owner: MarkusZoppelt
- License: mit
- Created: 2023-01-12T11:11:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T06:38:40.000Z (5 months ago)
- Last Synced: 2024-06-20T17:00:07.249Z (5 months ago)
- Topics: otp, ykman, yubikey
- Language: Go
- Homepage:
- Size: 98.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YubiKey OTP
A command line tool that lets you search for TOTP (oath) secrets on your
YubiKey with fuzzy search and easily copies them to your clipboard after
selecting.### Installation:
go install github.com/MarkusZoppelt/yubikey-otp@latest
### Usage
Search, display and copy YubiKey OTP codes.
A YubiKey is required to use this tool. After connecting the YubiKey, run the
yubiky-otp command to display the OTP codes. The codes are displayed in a fuzzy
searchable list. Select the code you want to copy to the clipboard.Usage:
yubikey-otp [flags]Flags:
-h, --help help for yubikey-otp
--device string YubiKey device ID
--verbose Enable verbose logging### Motivation:
[`ykman`](https://github.com/Yubico/yubikey-manager) is a powerful and useful
tool, but running `ykman oath accounts list` and `ykman oath accounts code
` just for getting TOTP secrets feels long and convoluted. And
even then you have to select the TOTP code and copy it manually... like an
animal! `yubikey-otp` has a nicer UX imho. Try it out! ;)### Known issues
#### Conflict with yubikey-agent
[`yubikey-agent` takes a persistent transaction so the YubiKey will cache the PIN after first use](https://github.com/FiloSottile/yubikey-agent#conflicts-with-gpg-agent-and-yubikey-manager).
To mitigate that issue, `yubikey-otp` will run `killall -HUP yubikey-agent`
during init.Don't worry, `yubikey-agent` will restart the next time you want to use it.