nixfiles/profiles/sshd/sshd.nix
2023-02-09 15:22:55 +00:00

14 lines
346 B
Nix

{lib, ...}: {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
KbdInteractiveAuthentication = lib.mkDefault false;
StreamLocalBindUnlink = true;
LogLevel = "VERBOSE";
};
kexAlgorithms = ["curve25519-sha256@libssh.org"];
};
}