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