nerdexam
CompTIA

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.

Networking Fundamentals

Question

Which configuration file would be edited to change the default options for outbound SSH sessions?

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)
  • C
    2% (1)
  • D
    96% (45)
  • E
    2% (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.

A/etc/ssh/sshd_config

/etc/ssh/sshd_config is the configuration file for the SSH daemon (server), not the client, and dictates how the server accepts incoming connections.

B/etc/ssh/ssh

/etc/ssh/ssh is not a standard configuration file for SSH; `ssh` is the executable program itself.

C/etc/ssh/client

/etc/ssh/client is not a standard or recognized SSH client configuration file path.

D/etc/ssh/ssh_configCorrect

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.

E/etc/ssh/ssh_client

/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

#SSH client#ssh_config#network configuration

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice