openssh: replaced deprecated challengeResponseAuthentication

This commit is contained in:
Fiscal Velvet Poet 2022-07-06 11:16:05 +10:00
parent 7a1357bee1
commit dbb8e6def5
Signed by: fiscalvelvetpoet
GPG key ID: D8EBFD58B023BD47

View file

@ -1,13 +1,14 @@
# SSH service configuration common to all hosts
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}: {
services.openssh = {
enable = true; # Enable the OpenSSH daemon.
permitRootLogin = "prohibit-password";
challengeResponseAuthentication = false;
kbdInteractiveAuthentication = false;
passwordAuthentication = false;
openFirewall = true;
hostKeys = [
@ -17,5 +18,4 @@
}
];
};
}