nerdexam
CompTIA

XK0-005 · Question #485

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

The correct answer is C. systemctl reload sshd. The systemct1 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 systemct1 stop sshd command would stop the SSH server daemon, not apply the changes…

System Management

Question

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

Options

  • Asystemctl stop sshd
  • Bsystemctl mask sshd
  • Csystemctl reload sshd
  • Dsystemctl start sshd

How the community answered

(36 responses)
  • B
    3% (1)
  • C
    94% (34)
  • D
    3% (1)

Explanation

The systemct1 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 systemct1 stop sshd command would stop the SSH server daemon, not apply the changes. The systemct1 mask sshd command would prevent the SSH server daemon from being started, not apply the changes. The systemct1 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.

Topics

#Linux administration#systemd#SSH configuration#Service management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice