CompTIA Linux+ XK0-006 (V8) Practice Question

A systems administrator is troubleshooting a remote access issue for a developer on a newly deployed Linux server. The developer is attempting to connect via SSH using key-based authentication but receives a Permission denied (publickey) error. The administrator has verified the following:

  • The developer's public key is correctly appended to the user's ~/.ssh/authorized_keys file.
  • The sshd service is active and running.
  • A firewall is not blocking the connection.

Which of the following is the most likely reason for the authentication failure?

  • The AllowUsers directive in /etc/ssh/sshd_config does not include the developer's username.

  • The SELinux context for the ~/.ssh/authorized_keys file is incorrect.

  • The developer's user account on the server has been locked or has expired.

  • The permissions for the user's home directory, ~/.ssh directory, or authorized_keys file are too permissive.

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot