nerdexam
CompTIA

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.

Security

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

(43 responses)
  • A
    88% (38)
  • B
    7% (3)
  • D
    2% (1)
  • E
    2% (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.

A/etc/ssh/sshd_configCorrect

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.

B/etc/ssh/ssh

`etc/ssh/ssh` is not a standard configuration file; `ssh` is the client program.

C/etc/ssh/server

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

D/etc/ssh/ssh_config

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

E/etc/ssh/ssh_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

#OpenSSH server#sshd_config#SSH configuration

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice