Objective 2.4XK0-005

2.4 Given a scenario, configure and execute remote connectivity for system management.

Objective 2.4 sits in Security, which carries 21% of the Linux+ exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.

Objective title verbatim from the official objectives. CompTIA exam page

A worked example

Shown solved, with the whole explanation open: this is what every question here carries.

2-4SecurityHard

An engineer appends a hardened setting at the bottom of sshd_config, but the daemon keeps using an earlier value higher in the file. Why?

The daemon reads the file bottom to topReading order is top to bottom, which is why first wins.
The first value per keyword is usedCorrect · your answerCorrect. First value per keyword wins.
Later lines need a Match block to applyMatch blocks scope settings; they are not required for a line to apply.
Appended lines apply only after rebootA reload applies changes; the ordering rule is what blocked this one.

Correct.

Concept

The configuration is first-match per keyword, so hardening edits belong above any existing setting rather than appended below it.

Why B

Unless noted otherwise, for each keyword the first obtained value is used, so the earlier line wins and the appended one is dead text.

#ssh#sshd-config

Now you: objective 2.4 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 2

2-4SecurityModerate

Access to a bastion must be limited to two named administrators, decided by the SSH daemon itself. Which directive does that?

Sample question 2 of 2

2-4SecurityModerate

A team sets AllowGroups in two places in sshd_config, expecting the second to replace the first. What actually happens?

Full Linux+ question bank coming

We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.

Read the sources

These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.

More objectives in Security