SSH prohibits root access with password

This commit is contained in:
Andrea Ciceri 2024-01-10 01:32:06 +01:00
parent e1da21e8fe
commit 98823953f7
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -1,6 +1,12 @@
{fleetFlake, ...}: {
services = {
sshd.enable = true;
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
};
};
fail2ban = {
enable = true;