TMA-LNX-SSH-X11
Ensure SSH X11 forwarding is disabled
中レベル 1自動linux
説明
Hardens the SSH daemon directive X11Forwarding.
チェック方法
監査方法: シェルコマンド
shell
sshd -T 2>/dev/null | grep -i '^x11forwarding '- 期待される出力
x11forwarding no
修正方法
修正方法: ファイル編集
- ファイル
/etc/ssh/sshd_config- 置換後の行
X11Forwarding no
プロパティ
- オペレーティングシステム
- ubuntu-22.04, ubuntu-24.04, rocky-9
- タグ
- sshserver
- 参照
- CIS Linux Benchmark - Services / SSH Server Configuration (verify section number for your distro release)
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target linux