LX0-104 · 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 OpenSSH server's default options and behaviors are configured by editing the sshd_config file, typically located in the /etc/ssh/ directory.
Question
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
(43 responses)- A88% (38)
- B7% (3)
- D2% (1)
- E2% (1)
Why each option
The OpenSSH server's default options and behaviors are configured by editing the `sshd_config` file, typically located in the `/etc/ssh/` directory.
The `/etc/ssh/sshd_config` file is the primary configuration file for the OpenSSH server daemon (`sshd`), where administrators define server-side parameters such as allowed authentication methods, port numbers, and access restrictions.
`etc/ssh/ssh` is not a standard configuration file; `ssh` is the client program.
`etc/ssh/server` is not a standard configuration file for the OpenSSH server.
`etc/ssh/ssh_config` is the configuration file for the OpenSSH client program (`ssh`), not the server.
`etc/ssh/ssh_server` is not a standard configuration file for the OpenSSH server.
Concept tested: OpenSSH server configuration file
Source: https://man7.org/linux/man-pages/man5/sshd_config.5.html
Topics
Community Discussion
No community discussion yet for this question.