Linux command
fido2-token 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List connected tokens
fido2-token -L
Get token info
fido2-token -I [/dev/hidraw0]
Set PIN
fido2-token -S [/dev/hidraw0]
Change PIN
fido2-token -C [/dev/hidraw0]
Reset token
fido2-token -R [/dev/hidraw0]
List resident credentials
fido2-token -L -r [/dev/hidraw0]
说明
fido2-token manages FIDO2/WebAuthn security keys. It can list, configure, and reset hardware tokens like YubiKeys, SoloKeys, and other FIDO2 authenticators. The tool is part of libfido2 and provides command-line access to token management functions typically accessed through browser WebAuthn APIs.
参数
- -L
- List connected tokens.
- -I _device_
- Get device information.
- -S _device_
- Set new PIN.
- -C _device_
- Change existing PIN.
- -R _device_
- Reset device (dangerous).
- -r
- With -L, list resident credentials.
- -b
- With -L, list biometric templates.
- -c
- Blob (largeBlob) operations.
- -d
- Debug output.
FAQ
What is the fido2-token command used for?
fido2-token manages FIDO2/WebAuthn security keys. It can list, configure, and reset hardware tokens like YubiKeys, SoloKeys, and other FIDO2 authenticators. The tool is part of libfido2 and provides command-line access to token management functions typically accessed through browser WebAuthn APIs.
How do I run a basic fido2-token example?
Run `fido2-token -L` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -L do in fido2-token?
List connected tokens.