nixos-config/modules/nixos/services/openssh.nix

14 lines
No EOL
257 B
Nix
Executable file

{ config, ... }:
{
services.openssh = {
enable = true;
ports = [ 8743 ];
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
AllowUsers = [ "wo2w" ];
};
};
}