1
0
clerie e082168630
Revert "configuration/common: Hotfix OpenSSH CVE-2024-6387"
This reverts commit 9455fefe5dd5a9a9ccb5a567135d04ad90c274f0.
2024-07-02 19:53:21 +02:00

17 lines
363 B
Nix

{ lib, ... }:
{
services.openssh.enable = true;
services.openssh.settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = lib.mkDefault "no";
};
services.openssh.hostKeys = lib.mkForce [
# Only create ed25519 host keys
{ type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; }
];
}