Security

A Linux server's SSH daemon is already configured with PAM and a TOTP module. The administrator wants every SSH login to require both a valid public key and a one-time code. Which sshd_config directive enforces both?

Show the answer

Correct answerC. AuthenticationMethods publickey,keyboard-interactive

A comma in AuthenticationMethods means the methods must succeed in sequence, so both the key and the PAM-driven code are required. A space separates alternative sets, so the space-separated option lets a user pass with either method alone.