LX0-104 · 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. To modify the default options for client-side SSH connections, the /etc/ssh/ssh_config file is edited. This file sets global parameters for all outbound SSH sessions initiated from the client 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
(47 responses)- C2% (1)
- D96% (45)
- E2% (1)
Why each option
To modify the default options for client-side SSH connections, the `/etc/ssh/ssh_config` file is edited. This file sets global parameters for all outbound SSH sessions initiated from the client system.
/etc/ssh/sshd_config is the configuration file for the SSH daemon (server), not the client, and dictates how the server accepts incoming connections.
/etc/ssh/ssh is not a standard configuration file for SSH; `ssh` is the executable program itself.
/etc/ssh/client is not a standard or recognized SSH client configuration file path.
The `/etc/ssh/ssh_config` file contains system-wide default configuration for the SSH client. Options defined here apply to all users and all outbound SSH connections unless overridden by user-specific `~/.ssh/config` or command-line arguments, making it the correct file for changing default outbound SSH session options.
/etc/ssh/ssh_client is not a standard or recognized SSH client configuration file path; `ssh_config` is the correct name.
Concept tested: SSH client configuration - outbound sessions
Source: https://man7.org/linux/man-pages/man5/ssh_config.5.html
Topics
Community Discussion
No community discussion yet for this question.