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