ykinfo1
Get basic information from a yubikey
Usage
ykinfo [-s]
[-m]
[-nkey]
[-H]
[-v]
[-t]
[-p]
[-1]
[-2]
[-q]
[-a]
[-c]
[-V]
[-h]
Overview
Get basic information from a YubiKey. Can get serial number, version and current touch level. Can get all parameters at once or one at a time. If -q is given only the relevant string from the YubiKey is written to screen.
Options
-
-s -
get the serial number and output it.
-
-m -
get the serial number and output it as modhex.
-
-nkey -
read from the nth key found.
-
-H -
get the serial number and output it as hex.
-
-v -
get the version and output it.
-
-t -
get the touch level and output it.
-
-p -
get the programming sequence and output it.
-
-1 -
get the status of slot 1, 1 for programmed and 0 for empty.
-
-2 -
get the status of slot 2, 1 for programmed and 0 for empty.
-
-a -
get all the information above.
-
-c -
get YubiKey capability information.
-
-q -
modifier, only show the relevant data from the YubiKey, no extra information.
-
-V -
print tool version and exit
Examples
Output information from a YubiKey:
$ ykinfo -s -m -H -v -t -p serial: 1077254 serial_hex: 107006 serial_modhex: bcicch version: 2.2.3 touch_level: 1793 programming_sequence: 1 $
Releases
7 releases since Debian 8 (Jessie); the text changed 2 times.
-c since Debian 9 (Stretch);
-nkey since Debian 10 (Buster).