Bug 3325 - ssh-keygen -K can't import multiple keys with the same app
Summary: ssh-keygen -K can't import multiple keys with the same app
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 8.6p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_8_9
  Show dependency treegraph
 
Reported: 2021-06-22 20:09 AEST by contact
Modified: 2022-02-25 13:57 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description contact 2021-06-22 20:09:37 AEST
When creating two keys using ssh-keygen and a SoloKey, but different usernames, ssh-keygen -K will later be unable to import both, instead overwriting keys. There is no way to change the key output or select keys to import.
Comment 1 Damien Miller 2021-10-28 14:40:35 AEDT
This is fixed in git HEAD and will be in openssh-8.9

commit 0001d04e55802d5bd9d6dece1081a99aa4ba2828
Author: djm@openbsd.org <djm@openbsd.org>
Date:   Thu Oct 28 02:54:18 2021 +0000

    upstream: When downloading resident keys from a FIDO token, pass
    
    back the user ID that was used when the key was created and append it to the
    filename the key is written to (if it is not the default).
    
    Avoids keys being clobbered if the user created multiple
    resident keys with the same application string but different
    user IDs.
    
    feedback Pedro Martelletto; ok markus
    
    NB. increments SSH_SK_VERSION_MAJOR
    
    OpenBSD-Commit-ID: dbd658b5950f583106d945641a634bc6562dd3a3
Comment 2 Damien Miller 2022-02-25 13:57:59 AEDT
closing bugs resolved before openssh-8.9