CompTIA Linux+ (XK0-005) — Question 54

A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?

Answer options

Correct answer: C

Explanation

The correct answer is C, as the ~/.ssh/config file allows users to set specific configurations for SSH connections, including custom ports for individual hosts. Options A, B, and D are not suitable for this purpose; A is for the SSH daemon configuration, B is for Diffie-Hellman parameters, and D contains public keys for authentication.