TMAegisBeta
cos için daha fazla kural

Container-Optimized OS

TMA-COS-5.1.22

Ensure SSH MaxSessions is set to 4 or less

DüşükDüzey 2Manuel incelemecos

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Manuel inceleme

Bu öneri otomatik olarak denetlenemez. --include-manual parametresini verdiğinizde tarama bunu bu talimatlarla birlikte listeler.

Run the following command and verify that output MaxSessions is 4 or less, or matches site policy: # sshd -T | grep -i maxsessions # maxsessions 4

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

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

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
container-optimized-oscosssh
Referans
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.1.22 Ensure SSH MaxSessions is set to 4 or less