sshd_config
sshd_config で条件を複数AND/ORで書きたい ユーザーが takuya で、LocalIPからの、の両方にマッチしたときのみ、パスワードログインを許可する。 複数を記述は、そのまま列挙すればいい。 Match User takuya Address 192.168.0.0/16 PasswordAuthentication…
ユーザーのssh のアクセス制限をIPアドレスで掛けたい。 IPアドレスからのパスワード・アクセスを許可したり、ユーザーごとに許可したりは、Match条件できる。 Match User apache PasswordAuthentication yes Match Address 192.168.10.* PasswordAuthentica…