Harden SSH
This commit is contained in:
parent
9bd44a4bba
commit
5511b8b30a
|
@ -2,7 +2,12 @@
|
|||
|
||||
{
|
||||
time.timeZone = "UTC";
|
||||
services.openssh = { enable = true; };
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
# require public key authentication for better security
|
||||
passwordAuthentication = false;
|
||||
kbdInteractiveAuthentication = false;
|
||||
};
|
||||
system.stateVersion = "22.05";
|
||||
|
||||
nix = {
|
||||
|
|
Loading…
Reference in a new issue