TMAegisBeta
Thêm quy tắc cho cos

Container-Optimized OS

TMA-COS-5.1.22

Ensure SSH MaxSessions is set to 4 or less

ThấpCấp 2Xem xét thủ côngcos

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Edit the /etc/ssh/sshd_config file to set the parameter as follows: MaxSessions 4

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
container-optimized-oscosssh
Tham chiếu
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.1.22 Ensure SSH MaxSessions is set to 4 or less