More nginx config dehardcoding. Did some sshd hardening.
This commit is contained in:
parent
66ca5839e5
commit
e745bdea3d
5 changed files with 15 additions and 7 deletions
|
@ -9,13 +9,18 @@ with lib;
|
|||
mkIf (elem "openssh" config.machine.services) {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
|
||||
sftpFlags = [ "-f AUTHPRIV" "-l INFO" ];
|
||||
startWhenNeeded = true;
|
||||
challengeResponseAuthentication = false;
|
||||
passwordAuthentication = false;
|
||||
permitRootLogin = "no";
|
||||
extraConfig = ''
|
||||
UsePAM no
|
||||
UseRoaming no
|
||||
AllowUsers derped git nix-ssh
|
||||
UsePrivilegeSeparation sandbox
|
||||
LogLevel VERBOSE
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue