2026-06-29 13:29:24 +01:00
|
|
|
# sshd for the hosts that run it (T400, Mac Pro, RPi5): enable the daemon, open
|
|
|
|
|
# port 22, and apply a key-only policy. Authorized keys are owned per-user by the
|
|
|
|
|
# registry (modules/users.nix), not here.
|
2026-06-29 13:06:23 +01:00
|
|
|
{ ... }:
|
|
|
|
|
{
|
2026-06-29 13:29:24 +01:00
|
|
|
services.openssh.enable = true;
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
|
|
2026-06-29 13:06:23 +01:00
|
|
|
services.openssh.settings = {
|
|
|
|
|
PasswordAuthentication = false; # keys only
|
|
|
|
|
KbdInteractiveAuthentication = false; # no keyboard-interactive fallback
|
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
|
};
|
|
|
|
|
}
|