3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
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
..
config nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
hardware nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
i18n/input-method nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
installer nix-fallback-paths.nix: Update to 2.3.16 2021-10-07 17:33:53 +02:00
misc Merge pull request #139765 from eyJhb/bitlbee-user-group 2021-10-06 08:57:33 +02:00
profiles
programs Merge pull request #140359 from rnhmjoj/setgid-nobody 2021-10-06 08:36:35 +02:00
security nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
services nixos/ssh: take care not to accept empty host key files 2021-10-12 12:25:38 +02:00
system Merge pull request #139754 from eyJhb/networkd-iaid 2021-10-05 10:06:05 +02:00
tasks Merge pull request #140779 from legendofmiracles/wol 2021-10-09 10:34:26 +02:00
testing nixos/lib/qemu-flags: rename to qemu-common 2021-09-18 16:58:16 +02:00
virtualisation nixos/qemu-vm: quote QEMU_NET_OPTS 2021-10-06 23:12:53 +02:00
module-list.nix nixos/prowlarr: init 2021-10-10 14:05:33 -07:00
rename.nix nixos/wakeonlan: add note to rename.nix 2021-10-10 10:50:16 -06:00