nerdexam
CompTIACompTIA

XK0-005 · Question #868

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

The correct answer is B: Instruct the user to add the required options to the ~/.ssh/config file. By defining a Host block with the necessary options in ~/.ssh/config, the user can simply run ssh hostname and SSH will automatically apply those options every time. This is both user‑specific and persistent without resorting to scripts or system‑wide changes.

System Management

Question

When trying to connect from the bastion host to the remote server, a Linux user always forgets to add some required options in the SSH command line. Which of the following is the best way to permanently solve the user's issue?

Options

  • AWrite a connection script and put it in the user's home directory.
  • BInstruct the user to add the required options to the ~/.ssh/config file
  • CAdd the required options to /etc/ssh/sshconfig
  • DEstablish an alias for the SSH command with all the required options.

Explanation

By defining a Host block with the necessary options in ~/.ssh/config, the user can simply run ssh hostname and SSH will automatically apply those options every time. This is both user‑specific and persistent without resorting to scripts or system‑wide changes.

Topics

#SSH#Client Configuration#Remote Access#Best Practices

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions