bugzilla-daemon at mindrot.org
2020-Apr-09 09:50 UTC
[Bug 3147] New: Confusing error message when the public key is missing.
https://bugzilla.mindrot.org/show_bug.cgi?id=3147
Bug ID: 3147
Summary: Confusing error message when the public key is
missing.
Product: Portable OpenSSH
Version: -current
Hardware: All
OS: OpenBSD
Status: NEW
Severity: trivial
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: jesper at ifconfig.se
I just upgraded my machine to the latest -current as of today. When
trying to login to a remote machine using ssh(1), I got the following
error because my id_rsa.pub is missing:
> load pubkey "/home/jesper/.ssh/id_rsa": invalid format
The error is very confusing and as I see it, it seems like ssh(1) tries
to load my private key and use it as a public key? Or it tries to load
the public key *for* my id_rsa, and fails because it does not exist,
but then the error should tell me the key/file does not exist rather
than invalid format?
Adding the id_rsa.pub again will make the error go away though.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-Apr-09 10:32 UTC
[Bug 3147] Confusing error message when the public key is missing.
https://bugzilla.mindrot.org/show_bug.cgi?id=3147
Jakub Jelen <jjelen at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jjelen at redhat.com
--- Comment #1 from Jakub Jelen <jjelen at redhat.com> ---
Is that really a key you are using for that connection? In what format
is it? traditional-PEM/PKCS8 PEM/openssh? Sharing a debug logs would be
helpful.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-Apr-09 11:13 UTC
[Bug 3147] Confusing error message when the public key is missing.
https://bugzilla.mindrot.org/show_bug.cgi?id=3147 --- Comment #2 from Jesper Wallin <jesper at ifconfig.se> --- Created attachment 3374 --> https://bugzilla.mindrot.org/attachment.cgi?id=3374&action=edit ssh -vvv ifconfig.se -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-Apr-09 11:14 UTC
[Bug 3147] Confusing error message when the public key is missing.
https://bugzilla.mindrot.org/show_bug.cgi?id=3147 --- Comment #3 from Jesper Wallin <jesper at ifconfig.se> --- (In reply to Jakub Jelen from comment #1)> Is that really a key you are using for that connection? In what > format is it? traditional-PEM/PKCS8 PEM/openssh? Sharing a debug > logs would be helpful.I've attached the debug output and it's the only key on my system, which works btw, despite the error. It looks like: -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: AES-128-CBC,48C1EB3613223186C9C28CE40777D53C [removed] -----END RSA PRIVATE KEY----- -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-May-08 03:45 UTC
[Bug 3147] Confusing error message when the public key is missing.
https://bugzilla.mindrot.org/show_bug.cgi?id=3147
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Blocks| |3117
Status|NEW |RESOLVED
CC| |djm at mindrot.org
--- Comment #4 from Damien Miller <djm at mindrot.org> ---
This should be fixed by commit 2b13d3934d580370 that will be in the
openssh-8.3 release
Referenced Bugs:
https://bugzilla.mindrot.org/show_bug.cgi?id=3117
[Bug 3117] Tracking bug for 8.3 release
--
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.
bugzilla-daemon at mindrot.org
2021-Mar-03 22:52 UTC
[Bug 3147] Confusing error message when the public key is missing.
https://bugzilla.mindrot.org/show_bug.cgi?id=3147
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #5 from Damien Miller <djm at mindrot.org> ---
close bugs that were resolved in OpenSSH 8.5 release cycle
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.