CompTIA Server+ (SK0-005) — Question 347
An administrator needs to disable root login over SSH. Which of the following files should be edited to complete this task?
Answer options
- A. /root/.ssh/sshd_config
- B. /etc/ssh/sshd_config
- C. /root/.ssh/ssh_config
- D. /etc/ssh/ssh_config
Correct answer: B
Explanation
The correct file to edit is /etc/ssh/sshd_config, as it contains the configuration settings for the SSH daemon. The other options either point to the wrong directory or refer to client configuration files, which do not control the server's ability to allow root login.