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 = {
enable = true;
forwardX11 = true;
permitRootLogin = "no";
settings = {
X11Forwarding = true;
PermitRootLogin = "no";
PasswordAuthentication = false;
};
startWhenNeeded = true;
openFirewall = true;
passwordAuthentication = false;
};
}