more secure servers
This commit is contained in:
parent
fbf624a445
commit
37fa6c9f05
3 changed files with 27 additions and 1 deletions
|
|
@ -20,7 +20,12 @@
|
|||
services.sshguard.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = false;
|
||||
settings = {
|
||||
KbdInteractiveAuthentication = false;
|
||||
PasswordAuthentication = false;
|
||||
UseDns = false;
|
||||
X11Forwarding = false;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys = config.ssh.keys;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue