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)
Feb 26 2024, 4:23 PM
Unknown Object (File)
Feb 23 2024, 8:22 PM
Unknown Object (File)
Feb 23 2024, 8:03 PM
Unknown Object (File)
Jan 27 2024, 8:56 AM
Unknown Object (File)
Jan 8 2024, 1:39 AM
Unknown Object (File)
Dec 20 2023, 4:15 AM
Unknown Object (File)
Dec 6 2023, 9:23 PM
Unknown Object (File)
Aug 30 2023, 4:14 PM
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 Not Applicable
Unit
Tests Not Applicable

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