Configure ssh via settings

This commit is contained in:
Bad 2023-03-19 14:38:34 +01:00
parent 04289143f0
commit 4258b2d215

View file

@ -1,10 +1,12 @@
{ ... }: { { ... }: {
services.openssh = { services.openssh = {
enable = true; enable = true;
forwardX11 = true; settings = {
permitRootLogin = "no"; X11Forwarding = true;
PermitRootLogin = "no";
PasswordAuthentication = false;
};
startWhenNeeded = true; startWhenNeeded = true;
openFirewall = true; openFirewall = true;
passwordAuthentication = false;
}; };
} }