sshd module, home-shared-modules

This commit is contained in:
Vinzenz Schroeter 2023-09-24 14:56:07 +02:00
parent 821d057aca
commit 37f5f73a76
7 changed files with 66 additions and 71 deletions

View file

@ -11,26 +11,14 @@ in {
};
config = lib.mkIf cfg.enable {
services = {
# Enable the OpenSSH daemon.
openssh = {
enable = true;
settings = {
# PermitRootLogin = "no"; # this is managed through authorized keys
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
};
networking.firewall = {
enable = true;
allowedTCPPortRanges = [
{
# ssh
from = 22;
to = 22;
}
# {
# # ssh
# from = 22;
# to = 22;
# }
];
};
};