Valid XK0-005 Dumps shared by ExamDiscuss.com for Helping Passing XK0-005 Exam! ExamDiscuss.com now offer the newest XK0-005 exam dumps, the ExamDiscuss.com XK0-005 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com XK0-005 dumps with Test Engine here:
A systems administrator needs to disable root login for SSH. Which of the following commands should the administrator use?
Correct Answer: B
To disable root login over SSH, modify the /etc/ssh/sshd_config file using: bash sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config Then restart the SSH service: bash systemctl restart sshd * Options A, C, and D are invalid or syntactically incorrect. * Only B makes a valid and permanent configuration change. Reference:CompTIA Linux+ XK0-005 Official Study Guide, Domain 3.2 - Implement authentication and authorization "To harden SSH, edit /etc/ssh/sshd_config and set PermitRootLogin no."