STIGhubSTIGhub
STIGsSearchCompareAbout

STIGhub

A free tool to search and browse the entire DISA STIG library. Saves up to 75% in security compliance research time.

Navigation

  • Browse STIGs
  • Search
  • Compare Versions

Resources

  • About
  • VPAT
  • DISA STIG Library
Powered by Pylon
© 2026 Beacon Cloud Solutions, Inc. All rights reserved.
← Back to Anduril NixOS Security Technical Implementation Guide

V-268143

CAT II (Medium)

NixOS must terminate all SSH connections after becoming unresponsive.

Rule ID

SV-268143r1131089_rule

STIG

Anduril NixOS Security Technical Implementation Guide

Version

V1R2

CCIs

CCI-001133

Discussion

Terminating an idle session within a short time period reduces the window of opportunity for unauthorized personnel to take control of a management session enabled on the console or console port that has been left unattended. In addition, quickly terminating an idle session will also free up resources committed by the managed network element. Terminating network connections associated with communications sessions includes, for example, de-allocating associated TCP/IP address/port pairs at the operating system level, and de-allocating networking assignments at the application level if multiple application sessions are using a single operating system-level network connection. This does not mean that the operating system terminates all sessions or network access; it only ends the inactive session and releases the resources associated with that session.

Check Content

Verify that all network connections associated with SSH traffic are automatically terminated after becoming unresponsive with the following command:

$ grep -i clientalivecount /etc/ssh/sshd_config

ClientAliveCountMax 1

If "ClientAliveCountMax" is not set to "1", is commented out, or is missing, this is a finding.

Fix Text

Configure NixOS to automatically terminate all network connections associated with SSH traffic after being unresponsive. 

Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:

services.openssh.extraConfig = ''
 ClientAliveCountMax 1
'';

Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch