Sshd, 922 port and no password auth

This commit is contained in:
Julia Lange 2025-03-17 12:31:06 -07:00
parent 66ba9163cb
commit 224f3e5555
Signed by: Julia
SSH key fingerprint: SHA256:50XUMcOFYPUs9/1j7p9SPnwASZ7QnxXm7THF7HkbqzQ

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";
};
};
};
}