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