Sshd: switch to new format
This commit is contained in:
parent
8890aa7e2d
commit
8483e70dd4
2 changed files with 9 additions and 6 deletions
|
|
@ -2,8 +2,10 @@
|
|||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
# permitRootLogin = "prohibit-password";
|
||||
passwordAuthentication = false;
|
||||
settings = {
|
||||
# PermitRootLogin = "prohibit-password";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
users.users.root = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
|
|
|
|||
|
|
@ -2,10 +2,11 @@
|
|||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
||||
kbdInteractiveAuthentication = lib.mkDefault false;
|
||||
permitRootLogin = lib.mkDefault "prohibit-password";
|
||||
passwordAuthentication = lib.mkDefault false;
|
||||
settings = {
|
||||
KbdInteractiveAuthentication = lib.mkDefault false;
|
||||
PermitRootLogin = lib.mkDefault "prohibit-password";
|
||||
PasswordAuthentication = lib.mkDefault false;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue