Sshd, 922 port and no password auth

This commit is contained in:
Julia Lange 2025-03-17 12:31:06 -07:00
parent 813901ec3f
commit c4201b7810

View file

@ -6,6 +6,13 @@
};
config = lib.mkIf config.sshd.enable {
services.openssh.enable = true;
services.openssh = {
enable = true;
ports = [ 922 ];
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
};
}