[Bug 3173] spurious message about pubkey being invalid format

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Jun 15 10:54:40 AEST 2020


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

comm+openssh at squotd.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |comm+openssh at squotd.net

--- Comment #8 from comm+openssh at squotd.net ---
A standalone public key file does not make this go away.

The error comes from this:

https://github.com/openssh/openssh-portable/blob/3779b50ee952078018a5d9e1df20977f4355df17/sshkey.c#L3978

The buffer is being checked for "-----BEGIN OPENSSH PRIVATE KEY-----",
but it in fact (in my case) starts with "-----BEGIN RSA PRIVATE
KEY-----"

The identical identity file using openssh 7.9p1 produces no warning.

I'll add an attachment with the bt.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list