nixos/services/sshd/default.nix
Evie Litherland-Smith 7538f6bd4b Adjust sshd settings
Allow root login via key only

Prune number of authorised keys
2023-10-22 06:52:38 +01:00

16 lines
283 B
Nix

{ config, lib, pkgs, ... }:
{
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
UseDns = true;
PermitRootLogin = "without-password";
PasswordAuthentication = false;
GatewayPorts = "yes";
LogLevel = "VERBOSE";
};
};
}