From 1045387ba8d162c24dffa10b17f3bf4749e69923 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 21 Feb 2022 16:37:49 -0800 Subject: ssh: authenticate only using ssh key --- hosts/common/system/ssh.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'hosts') diff --git a/hosts/common/system/ssh.nix b/hosts/common/system/ssh.nix index 0ecca80..cb7c47d 100644 --- a/hosts/common/system/ssh.nix +++ b/hosts/common/system/ssh.nix @@ -2,4 +2,5 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; services.openssh.permitRootLogin = "yes"; + services.openssh.passwordAuthentication = false; } -- cgit 1.4.1