From 68fa9ec21e183ecf1f80370ea8ac5dd48423b0f3 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 20 Feb 2023 17:13:12 +0100 Subject: [PATCH] Disable SSH password authentication --- configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configuration.nix b/configuration.nix index 5ecadaf..e983189 100644 --- a/configuration.nix +++ b/configuration.nix @@ -22,6 +22,7 @@ with pkgs; services.openssh = { enable = true; permitRootLogin = "yes"; + passwordAuthentication = false; }; # Cleanup tmp on startup @@ -33,7 +34,10 @@ with pkgs; home = "/home/coolneng"; extraGroups = [ "wheel" "docker" ]; openssh.authorizedKeys.keys = [ + # panacea "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFRqINHR7/zc+c3/PuR+NeSsBHXXzBiEtFWSK6QaxQTW coolneng@panacea" + # caravanserai + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTBWNtNp+vI2So4vISZX/yQv754ZzXqobFgUP3zk4FY zion" ]; shell = "${fish}/bin/fish"; };