Some ssh changes

This commit is contained in:
Johannes Jöns 2023-04-05 09:36:47 +02:00
parent 5dd2fb403d
commit 6a3869996b

View file

@ -12,9 +12,11 @@ in
config = mkIf cfg.enable {
services.openssh = {
enable = true;
ports = [ 22 ];
openFirewall = true;
settings = {
X11forwarding = true;
PermitRootLogin = "yes";
PermitRootLogin = "no";
passwordAuthentication = false;
kbdInteractiveAuthentication = false;
};