LFCS · Question #87
Which configuration file would be edited to change the default options for outbound SSH sessions?
The correct answer is D. /etc/ssh/ssh_config. The /etc/ssh/ssh_config file is the global configuration file for the SSH client, used to set default options for outbound SSH connections.
Question
Options
- A/etc/ssh/sshd_config
- B/etc/ssh/ssh
- C/etc/ssh/client
- D/etc/ssh/ssh_config
- E/etc/ssh/ssh_client
How the community answered
(26 responses)- B8% (2)
- D88% (23)
- E4% (1)
Why each option
The `/etc/ssh/ssh_config` file is the global configuration file for the SSH client, used to set default options for outbound SSH connections.
`/etc/ssh/sshd_config` is the configuration file for the SSH *server* daemon (`sshd`), controlling incoming connections.
`/etc/ssh/ssh` is not a standard configuration file; `ssh` is the client executable itself.
`/etc/ssh/client` is not a standard SSH configuration file.
The `/etc/ssh/ssh_config` file contains system-wide default settings for the SSH client program (`ssh`). These settings dictate how the client behaves when initiating outbound SSH connections, such as default ports, ciphers, and authentication methods.
`/etc/ssh/ssh_client` is not a standard SSH configuration file; `ssh_config` is the correct name.
Concept tested: SSH client configuration
Source: https://man7.org/linux/man-pages/man5/ssh_config.5.html
Topics
Community Discussion
No community discussion yet for this question.