ssh: if not declared otherwise disable password-login

This commit is contained in:
Felix Buehler 2022-06-09 23:20:39 +02:00
parent a3a764bddf
commit 3bc0e3f3b7

View file

@ -1,6 +1,9 @@
{ config, ... }:
{ config, lib, ... }:
{
services.openssh.enable = true;
services.openssh = {
enable = true;
passwordAuthentication = lib.mkDefault false;
};
# WARNING: if you remove this, then you need to assign a password to your user, otherwise
# `sudo` won't work. You can do that either by using `passwd` after the first rebuild or