SSH周りの設定

vi /etc/ssh/sshd_config
#rootログイン禁止
PermitRootLogin no
#パスワードログイン禁止
PasswordAuthentication no

rootになれるユーザーの制限

wheelグループだけに制限する例(/etc/pam.d/su)

#Uncomment the following line to require a user to be in the "wheel" group.
auth            required        pam_wheel.so use_uid

該当行のコメントをはずすとrootへのsuがwheelグループに制限される。

ファイヤーウォール

Counter: 5467, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS