modules: services: ssh-server: use 'settings'
This commit is contained in:
parent
0821334a0a
commit
6b4c01a242
|
@ -12,9 +12,12 @@ in
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
# Be more secure
|
# Be more secure
|
||||||
permitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
passwordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Opens the relevant UDP ports.
|
# Opens the relevant UDP ports.
|
||||||
|
|
Loading…
Reference in a new issue