[Bug 2946] New: ssh-keygen -e -f id_rsa only exports public key, never private keys

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Dec 19 21:16:33 AEDT 2018


https://bugzilla.mindrot.org/show_bug.cgi?id=2946

            Bug ID: 2946
           Summary: ssh-keygen -e -f id_rsa only exports public key, never
                    private keys
           Product: Portable OpenSSH
           Version: 7.9p1
          Hardware: Other
                OS: Windows 7
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh-keygen
          Assignee: unassigned-bugs at mindrot.org
          Reporter: tschweikle at gmail.com

"ssh-keygen -e -f id_rsa" only exports public key, never private keys.

# ssh-keygen -q -t rsa -b 2048 -N "" -C comment -f id_rsa
# ssh-keygen -e -f id_rsa
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "2048-bit RSA, converted by root at gvm10 from OpenSSH"
AAAAB3NzaC1yc2EAAAADAQABAAABAQDX+xNaEHcrJDM+e+Ro4oace/UITT3I0LKS6OJ3PO
caObuC4ltk5ohbuVCdu1BsyVMXcYu14x/eZKdylwaVWipKE2kE859ozNclHoq4BEbSRdWM
dDrBNHXZrhoHIS5AwbgPOepZLVwoe/y6F+LKbesGGMMUVL1FARGily9tg/XDX2riO8sZVj
LPNtDXfEg/TmAF119MQ4w054bpMxnqsmBNbv3vWQwrE7f8gN5eAOMCgRDUPF+EL1wFR9IW
tgnpEy1X5cOENuLCUBSi01pT8lgn/DGetnrn2UTQHXb+Bw9lZ9yI3OQTVKd7KeWa2j00lA
ZHWV1ofZ0o381Mdk4ZqQxX
---- END SSH2 PUBLIC KEY ----

# ssh-keygen -e -f id_rsa.pub
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "2048-bit RSA, converted by root at gvm10 from OpenSSH"
AAAAB3NzaC1yc2EAAAADAQABAAABAQDX+xNaEHcrJDM+e+Ro4oace/UITT3I0LKS6OJ3PO
caObuC4ltk5ohbuVCdu1BsyVMXcYu14x/eZKdylwaVWipKE2kE859ozNclHoq4BEbSRdWM
dDrBNHXZrhoHIS5AwbgPOepZLVwoe/y6F+LKbesGGMMUVL1FARGily9tg/XDX2riO8sZVj
LPNtDXfEg/TmAF119MQ4w054bpMxnqsmBNbv3vWQwrE7f8gN5eAOMCgRDUPF+EL1wFR9IW
tgnpEy1X5cOENuLCUBSi01pT8lgn/DGetnrn2UTQHXb+Bw9lZ9yI3OQTVKd7KeWa2j00lA
ZHWV1ofZ0o381Mdk4ZqQxX
---- END SSH2 PUBLIC KEY ----

I'd awaited to find my private key converted in the first case, not my
public one! The man-page even states this would be the case, but it is
not.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list