Skip to content

Instantly share code, notes, and snippets.

@captn3m0
Last active December 16, 2019 19:57
Show Gist options
  • Select an option

  • Save captn3m0/c1aee7f6365e8c10523dee7f661fc8b4 to your computer and use it in GitHub Desktop.

Select an option

Save captn3m0/c1aee7f6365e8c10523dee7f661fc8b4 to your computer and use it in GitHub Desktop.
yubikey swap

Instructions to self to follow if you need to use the second YUBIKEY. THis is required till https://dev.gnupg.org/T2291 is resolved

sudo killall -9 ssh-agent gpg-agent
cd .gnupg/private-keys-v1.d
rm A7E4CAC527963BB0603F6E853738D2B50DCDCE91.key
rm C996662E616AD37885CF87BC1EE05AA1B0766081.key
rm DE6B3E9E1A3FCE768E6837A62E9F9A0B55ECA262.key

Alternatively, see https://github.com/rjekker/gpg-switch-card/blob/master/gpg-switch-card.sh

Also explained on the guide I followed: https://github.com/drduh/YubiKey-Guide#multiple-keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment