diff options
author | drduh <github@duh.to> | 2019-06-09 12:31:58 -0700 |
---|---|---|
committer | drduh <github@duh.to> | 2019-06-09 12:31:58 -0700 |
commit | 48bf452e4b87c816eb5d372e2dc81e78a62792a0 (patch) | |
tree | 826fd87193d642676b10278d46ddaedaf9ca73cc | |
parent | Link to multiple keys discussions. Fix #19. Fix #112. (diff) | |
download | YubiKey-Guide-48bf452e4b87c816eb5d372e2dc81e78a62792a0.tar.gz |
Feature simpler multiple key workaround
-rw-r--r-- | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1785,7 +1785,13 @@ On the remote host, type `ssh-add -l` - if you see the ssh key, that means forwa # Multiple Keys -If a you want to use multiple YubiKeys with a single identity - or to replace a lost card with another, delete the GnuPG shadowed key - where the card serial number is stored (see [GnuPG #T2291](https://dev.gnupg.org/T2291)). +To use a single identity with multiple YubiKeys - or to replace a lost card with another - issue this command to switch keys: + +```console +$ gpg-connect-agent "scd serialno" "learn --force" /bye +``` + +Alternatively, you could manually delete the GnuPG shadowed key - where the card serial number is stored (see [GnuPG #T2291](https://dev.gnupg.org/T2291)). Find the `Keygrip` number of each key: @@ -1803,7 +1809,7 @@ sub rsa4096/0x3F29127E79649A3D 2017-10-09 [A] [expires: 2018-10-09] Keygrip = 7EF25A1115294342F451BC1CDD0FA94395F2D074 ``` -Then delete all the shadow keys using their `Keygrip` number: +Delete all the shadow keys using their `Keygrip` number: ```console $ cd ~/.gnupg/private-keys-v1.d |