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…
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)- A4% (2)
- B89% (50)
- C5% (3)
- D2% (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
Community Discussion
No community discussion yet for this question.