mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
ssh: if not declared otherwise disable password-login
This commit is contained in:
parent
a3a764bddf
commit
3bc0e3f3b7
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue