nerdexam
CompTIACompTIA

XK0-005 · Question #534

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

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

Security

Question

To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

Options

  • AAdd the line DenyUsers root to the /etc/hosts.deny file.
  • BSet PermitRootLogin to no in the /etc/ssh/sshd_config file.
  • CAdd the line account required pam_nologin. so to the /etc/pam.d/sshd file.
  • DSet PubKeyAuthentication to no in the /etc/ssh/ssh_config file.

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#Server Hardening#Root Access Control#Security Best Practices
Full XK0-005 PracticeBrowse All XK0-005 Questions