mirror of
https://github.com/smg1024/homelab.git
synced 2026-05-22 20:32:58 +09:00
add ssh hardening module
This commit is contained in:
parent
7261dc42c3
commit
0312eac789
1 changed files with 13 additions and 1 deletions
|
|
@ -1 +1,13 @@
|
|||
# TODO: Define OpenSSH settings.
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue