nixos/server/sshd.nix
2023-05-16 12:06:28 +01:00

15 lines
251 B
Nix

{ ... }:
{
services.openssh = {
enable = true;
ports = [ 2222 ];
settings = {
UseDns = true;
PermitRootLogin = "no";
PasswordAuthentication = false;
GatewayPorts = "yes";
LogLevel = "VERBOSE";
};
};
}