harden openssh server
This commit is contained in:
parent
c4a21a5a8d
commit
e3ffce6b02
1 changed files with 6 additions and 1 deletions
|
|
@ -237,7 +237,12 @@
|
|||
};
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [2201];
|
||||
settings.PasswordAuthentication = false;
|
||||
settings.PermitRootLogin = "prohibit-password";
|
||||
};
|
||||
|
||||
# enable manpages documentation
|
||||
documentation = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue