exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 119 discussion

Actual exam question from CompTIA's XK0-005
Question #: 119
Topic #: 1
[All XK0-005 Questions]

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
  • B. systemctl mask sshd
  • C. systemctl reload sshd
  • D. systemctl start sshd
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alizadeh
8 months, 3 weeks ago
Selected Answer: C
The correct answer is C. systemctl reload sshd.
upvoted 1 times
...
linux_admin
1 year, 2 months ago
Selected Answer: C
The command that should be used to apply changes to the SSH configuration file is option C, systemctl reload sshd. The reload command tells the sshd daemon to re-read its configuration file without terminating any existing connections. This makes it possible to apply changes to the SSH configuration file without disrupting any active SSH sessions. Using the systemctl reload sshd command will cause the SSH service to reload its configuration file and apply any changes that have been made, without requiring the service to be stopped and restarted. This is the preferred method of applying changes to the SSH configuration file because it allows changes to be made without affecting any currently connected users. If the systemctl reload sshd command is not available, the systemctl restart sshd command can be used instead. This will stop and start the SSH service, terminating all existing connections and applying the new configuration settings. However, this approach is less desirable because it will cause any active SSH sessions to be terminated.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago