]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 359973:
authorMateusz Piotrowski <0mp@FreeBSD.org>
Sun, 26 Jul 2020 10:01:27 +0000 (10:01 +0000)
committerMateusz Piotrowski <0mp@FreeBSD.org>
Sun, 26 Jul 2020 10:01:27 +0000 (10:01 +0000)
commit0dbe5d4b112f232d8153f38403231e9fd1e4216f
tree7dafb1f7fbb47493afee30adc0487cb01872ba63
parent8583d7c9b88ec633bad3b45a123f2ebfac746931
MFC 359973:

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).

Reviewed by: emaste
Approved by: emaste (src)
Differential Revision: https://reviews.freebsd.org/D23911
libexec/rc/rc.d/sshd