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 = {
|
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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue