Page MenuHomeFreeBSD

sshd: Warn about missing ssh-keygen only when necessary
ClosedPublic

Authored by 0mp on Mar 1 2020, 10:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 8:59 AM
Unknown Object (File)
Tue, Nov 12, 6:02 PM
Unknown Object (File)
Mon, Nov 4, 12:53 AM
Unknown Object (File)
Mon, Nov 4, 12:27 AM
Unknown Object (File)
Tue, Oct 29, 2:48 AM
Unknown Object (File)
Sep 29 2024, 9:05 PM
Unknown Object (File)
Sep 29 2024, 9:05 PM
Unknown Object (File)
Sep 24 2024, 9:31 AM
Subscribers

Details

Summary
sshd: Warn about missing ssh-keygen only when necessary

The sshd service is using ssh-keygen to generate missing SSH keys. If
ssh-keygen is missing, it prints the following message:

> /etc/rc.d/sshd: WARNING: /usr/bin/ssh-keygen does not exist.

It makes sense when the key is not generated yet and cannot be created because
ssh-keygen is missing.

The problem is that even if the key is present on the host, the sshd service
would still warn about missing ssh-keygen (even though it does not need it).

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244492

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29707
Build 27556: arc lint + arc unit

Event Timeline

MAINTAINERS says openssh is maintained by des, who accepts reviews via email only (no phabricator).

MAINTAINERS says openssh is maintained by des, who accepts reviews via email only (no phabricator).

I'll message him. Thanks for the remainder about the MAINTAINERS file.

In D23911#526012, @0mp wrote:

MAINTAINERS says openssh is maintained by des, who accepts reviews via email only (no phabricator).

I'll message him. Thanks for the remainder about the MAINTAINERS file.

I've not heard from @des yet. I'll wait a couple more days.

This revision is now accepted and ready to land.Apr 15 2020, 1:40 PM