systemd: sshd: Disable ssh-keygen

The default _sshd.service_ unit runs `ssh-keygen -A` in `ExecStartPre`,
to ensure host keys exist before starting the SSH daemon.
Unfortunately, this tool does _not_ respect the `HostKey` settings in
`sshd_config`, and unconditionally tries to create the key files in
`/etc/ssh`.  Since this directory is not writable, the command fails,
preventing the SSH daemon from starting.
dev/gentoo
Dustin 2025-01-02 12:57:31 -06:00
parent f914df7866
commit b43e8319f4
1 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1,2 @@
[Service]
ExecStartPre=