Some ssh changes

This commit is contained in:
Johannes Jöns 2023-04-05 09:36:47 +02:00
parent 5dd2fb403d
commit 6a3869996b

View file

@ -12,9 +12,11 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.openssh = { services.openssh = {
enable = true; enable = true;
ports = [ 22 ];
openFirewall = true;
settings = { settings = {
X11forwarding = true; X11forwarding = true;
PermitRootLogin = "yes"; PermitRootLogin = "no";
passwordAuthentication = false; passwordAuthentication = false;
kbdInteractiveAuthentication = false; kbdInteractiveAuthentication = false;
}; };