mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
profiles/server: convert part of OpenSSH config to settings attribute
This commit is contained in:
parent
e5066837bf
commit
5d23c751f3
@ -31,12 +31,14 @@ in
|
||||
services.openssh = lib.mkDefault {
|
||||
enable = true;
|
||||
|
||||
# Both are good for hardening as it only requires the keyfiles.
|
||||
passwordAuthentication = false;
|
||||
permitRootLogin = "no";
|
||||
|
||||
settings = {
|
||||
# Making it verbose for services such as fail2ban.
|
||||
logLevel = "VERBOSE";
|
||||
LogLevel = "VERBOSE";
|
||||
|
||||
# Both are good for hardening as it only requires the keyfiles.
|
||||
PasswordAuthentication = "no";
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
|
||||
# Manage your servers like a Linux-using basement dweller with their
|
||||
|
Loading…
Reference in New Issue
Block a user