2026-06-29 12:41:16 +01:00
|
|
|
# Key-only sshd hardening, imported by hosts that run sshd (T400, Mac Pro,
|
|
|
|
|
# RPi5). Authorized keys are owned per-user by the registry (modules/users.nix),
|
|
|
|
|
# not here.
|
2026-06-29 12:27:52 +01:00
|
|
|
{ ... }:
|
|
|
|
|
{
|
|
|
|
|
services.openssh.settings = {
|
|
|
|
|
PasswordAuthentication = false; # keys only
|
|
|
|
|
KbdInteractiveAuthentication = false; # no keyboard-interactive fallback
|
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
|
};
|
|
|
|
|
}
|