LFCS · Question #242
Which of the following configuration files would an administrator edit to change default options for outbound ssh sessions?
The correct answer is D. /etc/ssh/ssh_config. To configure client-side SSH options for outbound connections, the /etc/ssh/ssh_config file is used, affecting all users on the system.
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
(25 responses)- A4% (1)
- C8% (2)
- D88% (22)
Why each option
To configure client-side SSH options for outbound connections, the `/etc/ssh/ssh_config` file is used, affecting all users on the system.
/etc/ssh/sshd_config is the configuration file for the SSH daemon (server), controlling incoming SSH connections, not outbound client connections.
/etc/ssh/ssh is typically the SSH client executable itself, not a configuration file.
/etc/ssh/client is not a standard configuration file name for SSH client options.
The `/etc/ssh/ssh_config` file is the system-wide client configuration file for SSH, where default options for outbound SSH connections (like host aliases, connection parameters, etc.) are defined. These settings apply to all users unless overridden by a user's `~/.ssh/config` file.
/etc/ssh/ssh_client is not a standard configuration file name; the correct system-wide client configuration is `ssh_config`.
Concept tested: SSH client configuration file location
Source: https://linux.die.net/man/5/ssh_config
Topics
Community Discussion
No community discussion yet for this question.