Bug 2166

Summary: sshd logs unnecessary messages if some of default host keys doesn't exist
Product: Portable OpenSSH Reporter: Petr Lautrbach <plautrba>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED INVALID    
Severity: enhancement    
Priority: P5    
Version: 6.2p1   
Hardware: Other   
OS: Linux   
Attachments:
Description Flags
do not use absent host keys for default HostKey value
none
do not use absent host keys for default HostKey value none

Description Petr Lautrbach 2013-10-29 23:56:40 AEDT
Created attachment 2366 [details]
do not use absent host keys for default HostKey value

If the HostKey option is not set and an administrator hasn't created all the default host keys, sshd tries to use all three default keys every time a connection occurs, and logs a message that it couldn't load the missing key. It wouldn't be probably necessary if sshd checked for an existence of these keys during the servconf phase.
Comment 1 Petr Lautrbach 2013-10-30 01:13:16 AEDT
Created attachment 2367 [details]
do not use absent host keys for default HostKey value

and call fatal() when there's no suitable key
Comment 2 Petr Lautrbach 2013-12-11 21:21:40 AEDT
It's probably not a good idea to change the default behaviour. It's better to adjust the configuration file instead. I'm closing this bug.
Comment 3 Damien Miller 2021-04-23 15:11:00 AEST
closing resolved bugs as of 8.6p1 release