Bug 2166 - sshd logs unnecessary messages if some of default host keys doesn't exist
Summary: sshd logs unnecessary messages if some of default host keys doesn't exist
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 6.2p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 23:56 AEDT by Petr Lautrbach
Modified: 2021-04-23 15:11 AEST (History)
0 users

See Also:


Attachments
do not use absent host keys for default HostKey value (1.31 KB, patch)
2013-10-29 23:56 AEDT, Petr Lautrbach
no flags Details | Diff
do not use absent host keys for default HostKey value (1.47 KB, patch)
2013-10-30 01:13 AEDT, Petr Lautrbach
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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