CompTIA Linux+ (XK0-005) — Question 1

A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?

Answer options

Correct answer: D

Explanation

The correct file to modify is /etc/ssh/sshd_config, as it contains the configuration settings for the SSH daemon, including the port number. The other options do not influence the SSH port setting: /etc/host.conf relates to host resolution, /etc/hostname stores the system's hostname, and /etc/services defines network services and their ports but is not used for configuring the SSH daemon directly.