change ssh options
This commit is contained in:
11
default.nix
11
default.nix
@@ -35,14 +35,9 @@
|
||||
wget
|
||||
];
|
||||
|
||||
# Enable SSH for remote access
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
# SSH is already configured by the host type module
|
||||
# Only override if you need different settings:
|
||||
# services.openssh.settings.PermitRootLogin = lib.mkForce "no";
|
||||
|
||||
# Configure users (these will be added via inventory.nix extraUsers)
|
||||
# ugaif.users.sv22900.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user