SK0-005 · Question #145
An administrator needs to disable root login over SSH. Which of the following tiles should be edited to complete this task?
The correct answer is B. /etc.ssh/sshd_config. To disable root login over SSH, the server administrator needs to edit the SSH configuration file located at /etc/ssh/sshd_config. This file contains various settings for the SSH daemon that runs on the server and accepts incoming SSH connections. The administrator needs to…
Question
An administrator needs to disable root login over SSH. Which of the following tiles should be edited to complete this task?
Options
- A/root.ssh/sshd/config
- B/etc.ssh/sshd_config
- C/root/.ssh/ssh_config
- D/etc.sshs_shd_config
How the community answered
(70 responses)- A1% (1)
- B87% (61)
- C4% (3)
- D7% (5)
Explanation
To disable root login over SSH, the server administrator needs to edit the SSH configuration file located at /etc/ssh/sshd_config. This file contains various settings for the SSH daemon that runs on the server and accepts incoming SSH connections. The administrator needs to find the line that says PermitRootLogin and change it to no or comment it out with a # symbol. Then, the administrator needs to restart the SSH service for the changes to take effect.
Topics
Community Discussion
No community discussion yet for this question.