<div dir="ltr"><div><div><div><div>Hi!<br><br></div><div># Background<br></div>Ref: <a href="https://lists.gnupg.org/pipermail/gnupg-users/2021-June/065212.html">https://lists.gnupg.org/pipermail/gnupg-users/2021-June/065212.html</a>, I'm now in a situation where I've got a GPG pub/priv (not subkeys) key-pair used for work-purposes, and one for personal/private purposes (read: separate identities). Each GPG pub/priv key-pair resides on each their own yubikey, and I  bring the yubikeys with me when I move from say work laptop to personal laptop.<br><br></div><div># Motivation<br></div><div>I would like to be able to connect multiple yubikeys representing multiple opengpg pub/priv key-pairs/identities to the same _client_, and make use of _both_ on a remote I've SSH'ed to (using one of the yubikeys), without having to reboot/restart machine/gpg-agent/ssh connection.<br></div><div><br></div><div># Initial research effort<br></div><div>Is this possible? None of the guides/how-to's I've found seem to cover this use-case where you've got multiple GPG identities on multiple yubikeys where you'd like to encrypt/authenticate/sign with both on a remote over SSH.<br></div><br></div>There many guides online describing how to enable gpg agent forwarding, like:<br>- <a href="https://mlohr.com/gpg-agent-forwarding/">https://mlohr.com/gpg-agent-forwarding/</a><br>- <a href="https://superuser.com/a/884602">https://superuser.com/a/884602</a><br>- <a href="https://github.com/drduh/YubiKey-Guide#using-multiple-keys">https://github.com/drduh/YubiKey-Guide#using-multiple-keys</a><br><br></div><div>None of the above (IIUC) describe/cover my use-case, is this even supported?<br><br></div><div>And if so, how?</div><div><div><div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><span style="font-size:12.8000001907349px">Med vennlig hilsen/Kind regards,</span><br></div><div><div>Christian Chavez</div><div>Phone/Tlf: +47 922 22 603</div></div></div></div></div></div></div></div></div></div></div></div></div></div>