nerdexam
CompTIA

XK0-005 · Question #489

A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?

The correct answer is D. /etc/ssh/sshd_config. The file /etc/ssh/sshd_config contains the configuration settings for the SSH daemon, which handles the secure remote login. To change the port number, the engineer should edit this file and modify the line that says Port 22 to Port 49000. The other files are not related to the…

Security

Question

A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?

Options

  • A/etc/host.conf
  • B/etc/hostname
  • C/etc/services
  • D/etc/ssh/sshd_config

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    2% (1)
  • C
    7% (3)
  • D
    86% (36)

Explanation

The file /etc/ssh/sshd_config contains the configuration settings for the SSH daemon, which handles the secure remote login. To change the port number, the engineer should edit this file and modify the line that says Port 22 to Port 49000. The other files are not related to the SSH

Topics

#SSH configuration#Linux administration#Network security#Remote access

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice