SV-268176r1131160_rule
V-268176
SRG-OS-000125-GPOS-00065
ANIX-00-001960
CAT I
10
Configure NixOS to use strong authentication when establishing nonlocal maintenance and diagnostic sessions.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
openssh.settings.UsePAM = ''yes'';
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS employs strong authentication in the establishment of nonlocal sessions with SSH by the following command:
$ sudo /run/current-system/sw/bin/sshd -G | grep pam
usepam yes
If usepam is not yes, this is a finding.
V-268176
False
ANIX-00-001960
Verify NixOS employs strong authentication in the establishment of nonlocal sessions with SSH by the following command:
$ sudo /run/current-system/sw/bin/sshd -G | grep pam
usepam yes
If usepam is not yes, this is a finding.
M
5658