Skip to content

Linux+ XK0-006 practice question 9: Security

To reduce brute-force risk on an SSH server, which change is the strongest single hardening step?

The options

  • A. Allow root to log in directly over SSH.
  • B. Use a six-character password for convenience.
  • C. Turn off SSH logging.
  • D. Disable password logins and require key-based authentication.

Answer and why

The correct answer is D: Disable password logins and require key-based authentication.

A. Allowing direct root login gives attackers a known, privileged account to target.

B. Short passwords are easy to guess.

C. Logging helps detect attacks and does not prevent them.

D. Without password logins there is nothing to guess, and keys are far stronger.

What Security tests

Security is firewalls, SELinux and AppArmor, SSH hardening, auditing and encryption. The best answer is usually the narrowest change that meets the requirement without turning a control off.

Security is 18% of the XK0-006 exam. The exam has 90 questions in 90 minutes, so this question is a slice of the real mix, not a prediction of your result.

Try these next

Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.

Keep going

This is question 9 of 15 in the free Linux+ XK0-006 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.