[Bug 3147] New: Confusing error message when the public key is missing.
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Apr 9 19:50:31 AEST 2020
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.
More information about the openssh-bugs
mailing list