diff --git a/modules/services/networking/ssh/sshd.nix b/modules/services/networking/ssh/sshd.nix
index 0ef1f09f4d6c..76e35250a60a 100644
--- a/modules/services/networking/ssh/sshd.nix
+++ b/modules/services/networking/ssh/sshd.nix
@@ -173,14 +173,13 @@ in
};
permitRootLogin = mkOption {
- default = "yes";
+ default = "without-password";
check = permitRootLoginCheck;
description = ''
Whether the root user can login using ssh. Valid values are
yes, without-password,
forced-commands-only or
no.
- If without-password doesn't work try yes.
'';
};