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;
|
||||||
# Be more secure
|
|
||||||
permitRootLogin = "no";
|
settings = {
|
||||||
passwordAuthentication = false;
|
# Be more secure
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Opens the relevant UDP ports.
|
# Opens the relevant UDP ports.
|
||||||
|
|
Loading…
Reference in a new issue