Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   nitrocli    ( 1 )

доступ к устройствам Nitrokey (access Nitrokey devices)

  Name  |  Synopsis  |  Description  |  Options  |  Commands  |  Config file  |  Environment  |  Extensions  |  Files  |    Examples    |

Примеры (Examples)

Storage
       Create a hidden volume in the first available slot, starting at
       half the size of the encrypted volume (i.e., 50%) and stretching
       all the way to its end (100%):
           $ nitrocli hidden create 0 50 100

One-time passwords Configure a one-time password slot with a hexadecimal secret representation: $ nitrocli otp set 0 test-rfc4226 3132333435363738393031323334353637383930 --format hex --algorithm hotp $ nitrocli otp set 1 test-foobar 666F6F626172 --format hex --algorithm hotp $ nitrocli otp set 0 test-rfc6238 3132333435363738393031323334353637383930 --format hex --algorithm totp --digits 8

Configure a one-time password slot with an ASCII secret representation: $ nitrocli otp set 0 test-rfc4226 12345678901234567890 --format ascii --algorithm hotp $ nitrocli otp set 1 test-foobar foobar --format ascii --algorithm hotp $ nitrocli otp set 0 test-rfc6238 12345678901234567890 --format ascii --algorithm totp --digits 8

Configure a one-time password slot with a base32 secret representation: $ nitrocli otp set 0 test-rfc4226 gezdgnbvgy3tqojqgezdgnbvgy3tqojq --algorithm hotp $ nitrocli otp set 1 test-foobar mzxw6ytboi====== --algorithm hotp $ nitrocli otp set 0 test-rfc6238 gezdgnbvgy3tqojqgezdgnbvgy3tqojq --algorithm totp --digits 8

Generate a one-time password: $ nitrocli otp get 0 --algorithm hotp 755224 $ nitrocli otp get 0 --algorithm totp --time 1234567890 89005924

Clear a one-time password slot: $ nitrocli otp clear 0 --algorithm hotp

Configuration Query the configuration: $ nitrocli config get Config: numlock binding: not set capslock binding: not set scrollock binding: not set require user PIN for OTP: true

Change the configuration: $ nitrocli config set --otp-pin

Password safe Configure a PWS slot: $ nitrocli pws add example.org john.doe passw0rd Added PWS slot 0

Get the data from a slot: $ nitrocli pws get 0 name: example.org login: john.doe password: passw0rd

Copy the password to the clipboard (requires xclip(1)). $ nitrocli pws get 0 --password --quiet | xclip -in

Query the PWS slots: $ nitrocli pws status slot name 0 example.org