Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-006 Exam - Topic 4 Question 2 Discussion

Actual exam question for CompTIA's XK0-006 exam
Question #: 2
Topic #: 4
[All XK0-006 Questions]

A Linux administrator attempts to log in to a server over SSH as root and receives the following error message: Permission denied, please try again. The administrator is able to log in to the console of the server directly with root and confirms the password is correct. The administrator reviews the configuration of the SSH service and gets the following output:

Based on the above output, which of the following will most likely allow the administrator to log in over SSH to the server?

Show Suggested Answer Hide Answer
Suggested Answer: D

The SSH configuration option PermitRootLogin prohibit-password prevents the root user from logging in with password authentication. This setting means root cannot use a password to log in via SSH; only key-based authentication is permitted for root. The administrator can still log in as root locally, which is not affected by this SSH configuration. To allow SSH access as root, the administrator must use an SSH key instead of a password.

Other options:

A . MaxSessions controls the number of simultaneous SSH sessions but is not causing the login denial here.

B . PAM (Pluggable Authentication Modules) is disabled, but enabling it is not required for basic SSH authentication.

C . Changing the SSH port is unrelated to the authentication method issue.


CompTIA Linux+ Study Guide: Exam XK0-006, Sybex, Chapter 11: 'Securing Linux', Section: 'Securing SSH Access'

CompTIA Linux+ XK0-006 Objectives, Domain 3.0: Security

Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel