nerdexam
CompTIA

XK0-005 · Question #839

A junior Linux administrator is configuring the SSH server and needs to change the default SSH listen port. Which of the following files should the administrator edit to accomplish this task?

The correct answer is B. /etc/ssh/sshd_config. /etc/ssh/sshd_config is the configuration file for the SSH daemon (server). The 'Port' directive in this file controls which port sshd listens on. /etc/ssh/ssh_config (C) configures the SSH client, not the server. /etc/ssh/ssh_config.d (A) is a drop-in directory for client…

System Management

Question

A junior Linux administrator is configuring the SSH server and needs to change the default SSH listen port. Which of the following files should the administrator edit to accomplish this task?

Options

  • A/etc/ssh/ssh_config.d
  • B/etc/ssh/sshd_config
  • C/etc/ssh/ssh_config
  • D/etc/ssh/moduli

How the community answered

(56 responses)
  • A
    4% (2)
  • B
    89% (50)
  • C
    5% (3)
  • D
    2% (1)

Explanation

/etc/ssh/sshd_config is the configuration file for the SSH daemon (server). The 'Port' directive in this file controls which port sshd listens on. /etc/ssh/ssh_config (C) configures the SSH client, not the server. /etc/ssh/ssh_config.d (A) is a drop-in directory for client config snippets. /etc/ssh/moduli (D) contains parameters for Diffie-Hellman key exchange and is unrelated to port configuration.

Topics

#SSH#Server configuration#Configuration files#Network ports

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice