Add sshd@.service to call ssh-keygen from vsock

When connecting to a new system (ie: one without ssh keys already generated) via the vsock listener (created by systemd-ssh-generator), we'll get this error in the journal:

Jun 26 14:40:46 archlinux sshd[367]: sshd: no hostkeys available -- exiting.

and the client will be disconnected.

That's because, although we provide a sshd.service which depends on our sshdgenkeys.service, we don't do the same for sshd@.service (ie: "inetd mode", sshd -i), which is how the vsock sshd runs.

Upstream is of the opinion that it's our responsibility to provide that file. See https://github.com/systemd/systemd/issues/37980

Add the missing file.

Fixes #12 (closed)

Merge request reports

Loading