nerdexam
CompTIACompTIA

XK0-005 · Question #484

XK0-005 Question #484: Real Exam Question with Answer & Explanation

The correct answer is C: ~/.ssh/config. The ~/.ssh/config file can be used to set various options for SSH connections, including the port number, for specific hosts or groups of hosts. This file is located in the user's home directory and affects only the current user. The /etc/ssh/sshd_config file is used to configure

System Management

Question

A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?

Options

  • A/etc/ssh/sshd_config
  • B/etc/ssh/moduli
  • C~/.ssh/config
  • D~/.ssh/authorized_keys

Explanation

The ~/.ssh/config file can be used to set various options for SSH connections, including the port number, for specific hosts or groups of hosts. This file is located in the user's home directory and affects only the current user. The /etc/ssh/sshd_config file is used to configure the SSH server daemon, not the client. The /etc/ssh/moduli file contains parameters for Diffie-Hellman key exchange, not port settings. The ~/.ssh/authorized_keys file contains public keys for authentication, not port settings.

Topics

#SSH Client#Configuration Files#Remote Connectivity#User Settings

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions