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 {
|
services.openssh = lib.mkDefault {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Both are good for hardening as it only requires the keyfiles.
|
settings = {
|
||||||
passwordAuthentication = false;
|
# Making it verbose for services such as fail2ban.
|
||||||
permitRootLogin = "no";
|
LogLevel = "VERBOSE";
|
||||||
|
|
||||||
# Making it verbose for services such as fail2ban.
|
# Both are good for hardening as it only requires the keyfiles.
|
||||||
logLevel = "VERBOSE";
|
PasswordAuthentication = "no";
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Manage your servers like a Linux-using basement dweller with their
|
# Manage your servers like a Linux-using basement dweller with their
|
||||||
|
Loading…
Reference in New Issue
Block a user