all repos — nixfiles @ 68de0136c965c6549e39f7ca6d83be9f781aca6a

System and user configuration, managed by nix and home-manager

nanopi: disable SSH logins with passwords
Alan Pearce alan@alanpearce.eu
Tue, 28 May 2024 10:19:07 +0200
commit

68de0136c965c6549e39f7ca6d83be9f781aca6a

parent

a1edb7d39b6561a493c151a47b24cddf5378f1f9

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M system/nanopi.nixsystem/nanopi.nix
@@ -200,6 +200,10 @@ services.openssh = {     enable = true;
     openFirewall = true;
     startWhenNeeded = false;
+    settings = {
+      PasswordAuthentication = false;
+      KbdInteractiveAuthentication = false;
+    };
   };
   programs.mosh.enable = true;
   services.sshguard = {