ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 118 - XK0-005 discussion

Report
Export

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?

A.
/etc/ssh/sshd_config
Answers
A.
/etc/ssh/sshd_config
B.
/etc/ssh/moduli
Answers
B.
/etc/ssh/moduli
C.
~/.ssh/config
Answers
C.
~/.ssh/config
D.
~/.ssh/authorized_keys
Answers
D.
~/.ssh/authorized_keys
Suggested answer: C

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. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 12: Secure Shell (SSH), page 414.

asked 02/10/2024
Mark Wingate
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first