modules: services: ssh-server: use 'settings'

This commit is contained in:
Bruno BELANYI 2023-01-28 22:49:57 +01:00
parent 0821334a0a
commit 6b4c01a242

View file

@ -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.