Which of the following is a typical SSH server configuration file?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The typical SSH server configuration file is found at /etc/ssh/sshd_config. This file is critical for configuring the SSH daemon (sshd), which is the server-side component of the SSH protocol. The sshd_config file allows administrators to specify various settings such as port numbers, authentication methods, allowed users, and other options related to secure shell access.

In contrast, the other options listed serve different purposes. The ~/.ssh/authorized_keys file is used on the server side to store public keys for users who are allowed to log in without a password, effectively enabling key-based authentication. The ~/.ssh/known_hosts file is on the client side and contains a list of host keys for servers that the client has connected to, helping to prevent man-in-the-middle attacks by verifying the identity of servers. Lastly, /usr/local/etc/ssh/ssh_config typically refers to the client configuration file, where users can customize SSH client settings rather than server settings.

Recognizing the distinct roles of these files highlights why /etc/ssh/sshd_config is the correct answer, confirming it as the primary configuration file for SSH server management.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy