Mateusz Piotrowski 3e58608634 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)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D23911
2020-04-15 14:07:33 +00:00
..
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-01 08:04:22 +00:00
2018-03-05 16:11:07 +00:00
2019-11-12 22:31:59 +00:00
2017-10-31 00:07:04 +00:00
2019-12-04 16:56:11 +00:00
2017-10-31 00:07:04 +00:00
2019-12-11 17:37:53 +00:00
2020-04-06 23:16:05 +00:00