From c72358ace8316969e0f0b6d5e6b99efc9a35076e Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Wed, 6 Nov 2024 00:00:16 -0600 Subject: [PATCH] bert: Disable ssh password auth --- bert/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/bert/configuration.nix b/bert/configuration.nix index f9a6c33..c475e2a 100644 --- a/bert/configuration.nix +++ b/bert/configuration.nix @@ -51,6 +51,7 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; + services.openssh.settings.PasswordAuthentication = false; users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhPyyqS3BGYor3zLbjc8hZuhem3mS8TNmvWogXcnz/b chandler@chandlerswift.com'' ]; networking.firewall.allowedTCPPorts = [