Use the same passphrase for PGP and SSH keys and get prompted only once by gpg-agent
Pierre Neidhardt
ambrevar at gmail.com
Fri Feb 9 14:25:00 CET 2018
I use gpg-agent as my SSH agent.
I've successfully set it up, now whenever I restart gpg-agent (e.g. on
reboot), it will ask for the passphrase twice, once for the GPG keys,
once for the SSH keys, even though they are the same passphrases.
First setup: I called ssh-add to add existing SSH keys to GPG.
gpg-agent asked for a passphrase to encrypt the keys, so I presume the
passphrase must be different from the one I use for my GPG keys. Isn't
it possible to tell GPG to "store the keys together" or to encrypt with
my GPG key?
Second setup: I created an authentication subkey which I use as an SSH
key. It works, but again, gpg-agent asks for my passphrase twice, while
this time the SSH key is obviously encrypted with the same passphrase as
my GPG key, since it's part of it. Any clue why gpg-agent keeps asking?
--
Pierre Neidhardt
The universe is made of stories, not of atoms.
-- Muriel Rukeyser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20180209/31afebdb/attachment.sig>
More information about the Gnupg-users
mailing list