ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 119 - XK0-005 discussion

Report
Export

A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?

A.
systemctl stop sshd
Answers
A.
systemctl stop sshd
B.
systemctl mask sshd
Answers
B.
systemctl mask sshd
C.
systemctl reload sshd
Answers
C.
systemctl reload sshd
D.
systemctl start sshd
Answers
D.
systemctl start sshd
Suggested answer: C

Explanation:

The systemctl reload sshd command can be used to apply the configuration changes of the SSH server daemon without restarting it. This is useful to avoid interrupting existing connections. The systemctl stop sshd command would stop the SSH server daemon, not apply the changes. The systemctl mask sshd command would prevent the SSH server daemon from being started, not apply the changes. The systemctl start sshd command would start the SSH server daemon if it is not running, but it would not apply the changes if it is already running. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 12: Secure Shell (SSH), page 415.

asked 02/10/2024
Chris OMalley
26 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first