mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
fix: harden sshd
This commit is contained in:
parent
fedeb86522
commit
7f5ef58981
1 changed files with 2 additions and 2 deletions
|
|
@ -4,9 +4,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
ports = [22];
|
ports = [22];
|
||||||
settings = {
|
settings = {
|
||||||
PasswordAuthentication = true;
|
PasswordAuthentication = false;
|
||||||
AllowUsers = null;
|
AllowUsers = null;
|
||||||
PermitRootLogin = "yes";
|
PermitRootLogin = "no";
|
||||||
LoginGraceTime = 0;
|
LoginGraceTime = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue