GPG agent forwarding multiple yubikeys with distinct public keys/subkeys over SSH

Werner Koch wk at
Wed Jun 23 14:38:40 CEST 2021

On Wed, 23 Jun 2021 11:38, Christian Chavez said:

> 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

Use gnupg 2.3 and this should work.  I am using several tokens in a
local setup for years.  Not tested with remote; if you run into problems
enabled IPC debugging for gpg-agent and watch out for GPG_ERR_FORBIDDEN.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list