CompTIACompTIA
XK0-005 · Question #1763
XK0-005 Question #1763: Real Exam Question with Answer & Explanation
The correct answer is D: PasswordAuthentication no. PasswordAuthentication no ensures that SSH logins are only allowed using key-based authentication, preventing password-based access.
Security
Question
An administrator needs to allow remote administrative access to a Linux server only to employees who are using the authorized private key. Which of the following options should the administrator set in the SSHD configuration file to achieve the goal?
Options
- AAuthorizedKeysCommand sudo
- BPermitRootLogin prohibit-password
- CAuthorizedKeysCommandUser root
- DPasswordAuthentication no
Explanation
PasswordAuthentication no ensures that SSH logins are only allowed using key-based authentication, preventing password-based access.
Topics
#SSH Configuration#Key-based Authentication#Linux Security#Remote Access
Community Discussion
No community discussion yet for this question.