nerdexam
Linux_Foundation

LFCS · Question #79

Which configuration file would be edited to change default options for the OpenSSH server?

The correct answer is A. /etc/ssh/sshd_config. The primary configuration file for the OpenSSH server is sshd_config, located in the /etc/ssh directory.

Submitted by ravi_2018· Apr 18, 2026Service Configuration

Question

Which configuration file would be edited to change default options for the OpenSSH server?

Options

  • A/etc/ssh/sshd_config
  • B/etc/ssh/ssh
  • C/etc/ssh/server
  • D/etc/ssh/ssh_config
  • E/etc/ssh/ssh_server

How the community answered

(34 responses)
  • A
    88% (30)
  • B
    3% (1)
  • C
    6% (2)
  • E
    3% (1)

Why each option

The primary configuration file for the OpenSSH server is `sshd_config`, located in the `/etc/ssh` directory.

A/etc/ssh/sshd_configCorrect

The `/etc/ssh/sshd_config` file contains all the configuration directives for the OpenSSH daemon (`sshd`), controlling server-side options like listening port, authentication methods, and allowed users.

B/etc/ssh/ssh

/etc/ssh/ssh is not a standard configuration file for the SSH server.

C/etc/ssh/server

/etc/ssh/server is not a standard configuration file for the SSH server.

D/etc/ssh/ssh_config

/etc/ssh/ssh_config is the configuration file for the OpenSSH client (`ssh`), not the server.

E/etc/ssh/ssh_server

/etc/ssh/ssh_server is not a standard configuration file for the SSH server.

Concept tested: OpenSSH server configuration file

Source: https://man7.org/linux/man-pages/man5/sshd_config.5.html

Topics

#SSH#Configuration files#Server administration#Networking services

Community Discussion

No community discussion yet for this question.

Full LFCS Practice