旧版のsshdで、パスワードを入力する方式のログインを無効にしたい。noへ設定する認証項目を2つ選べ。
- A PAMAuthentication
- B ChallengeResponseAuthentication
- C PermitPlaintextLogin
- D UsePasswords
- E PasswordAuthentication
正解:B、E
理由
PasswordAuthenticationと、旧名ChallengeResponseAuthenticationを無効にする。キーボード対話認証経由でパスワードを使う構成もあるため、両方を扱う。現行名はKbdInteractiveAuthenticationである。
選択肢ごとの説明
- A. PAMAuthentication
sshd_configでこの名前のパスワード認証設定を使わない。
- B. ChallengeResponseAuthentication
旧版でキーボード対話認証を制御する項目である。PAM経由のパスワード入力も止めるには、この方式も無効にする。
- C. PermitPlaintextLogin
sshd_configのこの認証設定の正式名ではない。
- D. UsePasswords
パスワード認証の正式名はPasswordAuthenticationである。
- E. PasswordAuthentication
SSHのパスワード認証を無効にする。