disallow ssh root login and password auth
This commit is contained in:
parent
ac5e26ecda
commit
84f9815ebb
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,11 @@
|
|||
{ config, pkgs, ... }: {
|
||||
networking.firewall.enable = false;
|
||||
services.openssh.enable = true;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "no";
|
||||
passwordAuthentication = false;
|
||||
};
|
||||
|
||||
security = {
|
||||
polkit.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue