nixos/openssh: Disable authorised keys in homedir

This commit is contained in:
Mikael 2024-09-12 11:33:05 +02:00
parent 796e94be65
commit 0b1a42ed9d
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -34,6 +34,7 @@ in {
};
services.openssh = {
authorizedKeysInHomedir = false;
hostKeys = lib.mkDefault [
{
path = "/etc/keys/ssh_host_ed25519_key";