export all valid authentication subkeys in --export-ssh-key
Open, LowPublic


I do not see why --export-ssh-key exports only a single key (the latest). In my configuration, I have private key material for each device split into multiple subkeys. They are all active and valid authentication keys, and should be included in the output.

I know that I can manually enumerate the subkeys and iterate --export-ssh-key 'SUBKEY!' but that's really clunky. Besides, what I want to do is to tell people:

To get my SSH key, type the following:

gpg --recv-keys 8DC901CE64146C048AD50FBB792152527B75921E # optional, do check validity
gpg --export-ssh-key 8DC901CE64146C048AD50FBB792152527B75921E

Not a crazy shell script that's going to haphazardly parse --with-colons (and break in the next upgrade).

At least there should be an --export-option to tweak that.

Thanks for that nice feature!


anarcat created this task.Nov 15 2018, 10:52 PM
werner triaged this task as Low priority.Nov 16 2018, 9:11 AM
werner added a project: ssh.
dkg added a subscriber: dkg.Jan 18 2019, 4:29 PM