exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 2 discussion

Actual exam question from CompTIA's XK0-005
Question #: 2
Topic #: 1
[All XK0-005 Questions]

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?

  • A. /etc/host.conf
  • B. /etc/hostname
  • C. /etc/services
  • D. /etc/ssh/sshd_config
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 8 months, 4 weeks ago
D. /etc/ssh/sshd_config The file the engineer needs to modify is "/etc/ssh/sshd_config". This is the configuration file for the SSH server and it controls various parameters for the server, including the port number used for secure remote login. To change the port number from 22 to 49000, the engineer should locate the line that starts with "Port 22" and change it to "Port 49000". After making the change, the engineer should save the file and restart the SSH service for the changes to take effect.
upvoted 7 times
...
Nvoid
Most Recent 11 months, 1 week ago
was on the test.
upvoted 3 times
...
TheRealManish
1 year ago
D is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago