Configure ssh via settings
This commit is contained in:
parent
04289143f0
commit
4258b2d215
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue