Container-Optimized OS
TMA-COS-5.1.22
Ensure SSH MaxSessions is set to 4 or less
낮음레벨 2수동 검토cos
설명
The MaxSessions parameter specifies the maximum number of open sessions permitted from a given connection. To protect a system from denial of service due to a large number of concurrent sessions, use the rate limiting function of MaxSessions to protect availability of sshd logins and prevent overwhelming the daemon.
점검 방법
감사 방식: 수동 검토
이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.
Run the following command and verify that output MaxSessions is 4 or less, or matches site policy: # sshd -T | grep -i maxsessions # maxsessions 4
조치 방법
조치 방식: 가이드 또는 인프라 패치
Edit the /etc/ssh/sshd_config file to set the parameter as follows: MaxSessions 4
속성
- 운영 체제
- 모두
- 태그
- container-optimized-oscosssh
- 참고 자료
- CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.1.22 Ensure SSH MaxSessions is set to 4 or less