XK0-005 · Question #484
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…
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…
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
How the community answered
(60 responses)- A2% (1)
- B3% (2)
- C92% (55)
- D3% (2)
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
Community Discussion
No community discussion yet for this question.