nerdexam
CompTIACompTIA

XK0-005 · Question #828

XK0-005 Question #828: Real Exam Question with Answer & Explanation

Sign in or unlock XK0-005 to reveal the answer and full explanation for question #828. The question stem and answer options stay visible for context.

Security

Question

A systems administrator needs to disable root login for SSH. Which of the following commands should the administrator use?

Options

  • Atouch /etc/ssh/sshd_config | awk 's/PermitRootLoginX yes/PermitRootLoginX no/'
  • Bsed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
  • Ctouch /etc/ssh/sshd_config | print* 1PermitRootLogin/PermitRootLogin no/'
  • Dcat /etc/ssh/sshd_config | grep 's/PermitRootLogin yes/PermitRootLogin no/'

Unlock XK0-005 to see the answer

You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#SSH configuration#Security hardening#sed command#Linux file editing
Full XK0-005 PracticeBrowse All XK0-005 Questions