nixos/server/sshd.nix

15 lines
251 B
Nix

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