CompTIA Linux+ (XK0-004) — Question 274

A systems administrator needs to prevent the root account from being used to log in to a Linux server via SSH. Which of the following configuration files does the systems administrator need to edit to perform this task?

Answer options

Correct answer: A

Explanation

The correct file to edit is /etc/sshd_config, where the administrator can set 'PermitRootLogin no' to prevent root SSH access. The /etc/passwd file is not used for SSH configuration, and the other options do not control root login permissions directly.