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.
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
(34 responses)- A88% (30)
- B3% (1)
- C6% (2)
- E3% (1)
Why each option
The primary configuration file for the OpenSSH server is `sshd_config`, located in the `/etc/ssh` directory.
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.
/etc/ssh/ssh is not a standard configuration file for the SSH server.
/etc/ssh/server is not a standard configuration file for the SSH server.
/etc/ssh/ssh_config is the configuration file for the OpenSSH client (`ssh`), not the 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
Community Discussion
No community discussion yet for this question.