TMAegisベータ
cos のその他のルール

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

修正方法

修正方法: ガイダンスまたは IaC パッチ

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