nerdexam
CompTIA

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…

Security and disaster recovery

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)
  • A
    1% (1)
  • B
    87% (61)
  • C
    4% (3)
  • D
    7% (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

#SSH configuration#Server security#Root access#Linux file system

Community Discussion

No community discussion yet for this question.

Full SK0-005 Practice