nixpkgs/nixos/modules/services/networking/ssh
Matthias Treydte 97e61a071d nixos/ssh: take care not to accept empty host key files
In case of a power loss shortly after first boot,
the host keys gernerated by ssh-keygen could exist
in the file system but have zero size, preventing
sshd from starting up.

This commit changes the behaviour to generate host
keys if the file either does not exist or has zero
size, fixing the problem on the next boot.

Thanks to @SuperSandro2000 for figuring this out.
2021-10-12 12:25:38 +02:00
..
lshd.nix nixos/lshd: add types 2021-01-31 11:27:20 +01:00
sshd.nix nixos/ssh: take care not to accept empty host key files 2021-10-12 12:25:38 +02:00