Skip to content

Instantly share code, notes, and snippets.

@whoo
Last active February 17, 2025 19:51
Show Gist options
  • Save whoo/3ab9a0c15eb20c5d43bf8c26b24e030f to your computer and use it in GitHub Desktop.
Save whoo/3ab9a0c15eb20c5d43bf8c26b24e030f to your computer and use it in GitHub Desktop.
Reset YubiKey
#!/bin/bash
./ykman fido reset
./ykman oath reset
./ykman openpgp reset
./ykman otp delete 1
./ykman otp delete 2
./ykman piv reset
./ykman piv access change-management-key -a AES256 -t -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment