Disable password login
This commit is contained in:
parent
7ae2007c95
commit
9a74955258
1 changed files with 2 additions and 1 deletions
|
|
@ -115,6 +115,7 @@
|
|||
isNormalUser = true;
|
||||
extraGroups = [ "audio" "input" "docker" "flashrom" "libvirtd" "network" "usb" "video" "wheel" ];
|
||||
shell = pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN+zsSWZFFzQKnATCAvtG+iuSm4qkZHjCtHzGa9B/71W" ];
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
|
|
@ -134,7 +135,7 @@
|
|||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh = { enable = true; openFirewall = true; };
|
||||
services.openssh = { enable = true; openFirewall = true; permitRootLogin = "no"; passwordAuthentication = false; };
|
||||
|
||||
# Cooling management
|
||||
services.thermald.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue