TMAegis
linux のその他のルール

TMA-LNX-SSH-LOGINGRACE

Ensure SSH LoginGraceTime is 60 seconds or less

中レベル 1自動linux

説明

Hardens the SSH daemon directive LoginGraceTime.

チェック方法

監査方法: シェルコマンド

shell
sshd -T 2>/dev/null | awk '/^logingracetime /{ if ($2>0 && $2<=60) print "ok"; else print "bad" }'
期待される出力
ok

修正方法

修正方法: ファイル編集

ファイル
/etc/ssh/sshd_config
置換後の行
LoginGraceTime 60

プロパティ

オペレーティングシステム
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