SV-268088r1130975_rule
V-268088
SRG-OS-000032-GPOS-00013
ANIX-00-000140
CAT II
10
Configure NixOS to monitor remote access methods by adding the following configuration to the /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
services.openssh.logLevel = "VERBOSE";
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Confirm the NixOS monitors remote access methods with the following command:
$ grep "LogLevel" /etc/ssh/sshd_config
LogLevel VERBOSE
If "LogLevel" does not equal "VERBOSE", is missing, or is commented out, this is a finding.
V-268088
False
ANIX-00-000140
Confirm the NixOS monitors remote access methods with the following command:
$ grep "LogLevel" /etc/ssh/sshd_config
LogLevel VERBOSE
If "LogLevel" does not equal "VERBOSE", is missing, or is commented out, this is a finding.
M
5658