New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - Topic 3 Question 46 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 46
Topic #: 3
[All XK0-005 Questions]

A Linux administrator is enabling root log-in over SSH on a server. Which of the following combinations of files and parameters should the administrator modify to accomplish this task?

Show Suggested Answer Hide Answer
Suggested Answer: C

To enable root login over SSH, the administrator must edit the /etc/ssh/sshd_config file, which configures the SSH daemon. The PermitRootLogin directive should be set to yes to allow root login. After making this change, the SSH daemon must be restarted for the changes to take effect.


Contribute your Thoughts:

0/2000 characters
Dean
3 months ago
Yeah, but sometimes you need it for specific tasks.
upvoted 0 times
...
Abel
3 months ago
I thought root log-in was discouraged for security reasons?
upvoted 0 times
...
Ahmed
3 months ago
Wait, are you sure? I thought it was AllowRootLogin.
upvoted 0 times
...
Norah
4 months ago
Agreed, that's the right file!
upvoted 0 times
...
Brandon
4 months ago
It's definitely /etc/ssh/sshd_config - PermitRootLogin.
upvoted 0 times
...
Vanda
4 months ago
I thought AllowRootLogin was a parameter too, but I can't recall if it's valid. I should double-check that before answering.
upvoted 0 times
...
Carolann
4 months ago
I feel like I might confuse ssh_config with sshd_config. I hope I remember the right one during the exam.
upvoted 0 times
...
Iola
4 months ago
I remember practicing a question like this, and I think the correct option is C with PermitRootLogin in the sshd_config file.
upvoted 0 times
...
Nobuko
5 months ago
I think we need to look at the sshd_config file, but I'm not sure if it's PermitRootLogin or AllowRootLogin.
upvoted 0 times
...
Shayne
5 months ago
I've got this one down. The correct answer is C. You modify the /etc/ssh/sshd_config file and set the PermitRootLogin parameter to enable root login over SSH.
upvoted 0 times
...
Gaynell
5 months ago
I'm a little confused on this one. Is it the ssh_config file or the sshd_config file that controls root login? I need to review the SSH configuration settings again to be sure.
upvoted 0 times
...
Ezekiel
5 months ago
Easy peasy! The answer is D. The sshd_config file is where you enable root login over SSH. Just set the AllowRootLogin parameter in there.
upvoted 0 times
...
Trina
5 months ago
Hmm, I'm a bit unsure about this one. I know it has something to do with the SSH config files, but I can't remember if it's the ssh_config or sshd_config file. I'll have to double-check the details.
upvoted 0 times
...
Crista
5 months ago
I'm pretty sure it's C. The sshd_config file is where you configure the SSH server, so that's where you'd set the PermitRootLogin option.
upvoted 0 times
...
William
1 year ago
Haha, enabling root login over SSH? What could possibly go wrong? Just make sure you have a backup plan in case you lock yourself out of the server. Option C is the way to go, though.
upvoted 0 times
...
Karl
1 year ago
Option C is the answer. Who would have thought enabling root login could be so simple? It's like unlocking the door to your digital fortress with a single command.
upvoted 0 times
Shawnna
1 year ago
Yes, it's important to be cautious when enabling root login over SSH to ensure the security of the server.
upvoted 0 times
...
Rasheeda
1 year ago
I always thought enabling root login would be more complicated. Good to know it's just a matter of changing a parameter in the sshd_config file.
upvoted 0 times
...
Emerson
1 year ago
Option C is the correct answer. Enabling root login is indeed simple with just a few modifications.
upvoted 0 times
...
...
Fletcher
1 year ago
I'm not sure, but I think PermitRootLogin is the standard parameter for enabling root log-in over SSH.
upvoted 0 times
...
Keneth
1 year ago
But what about option D? AllowRootLogin sounds like it could work too.
upvoted 0 times
...
Ilene
1 year ago
I agree with Fletcher, because sshd_config is for server-side configuration.
upvoted 0 times
...
Stephania
1 year ago
I agree with Mee. The sshd_config file is the go-to place for configuring SSH server settings. PermitRootLogin is the way to go.
upvoted 0 times
...
Mee
1 year ago
Option C seems like the right choice. The sshd_config file is where you configure the SSH server settings, and PermitRootLogin is the correct parameter to enable root login over SSH.
upvoted 0 times
Ronna
1 year ago
Great, let's go ahead and make that change in the sshd_config file.
upvoted 0 times
...
Merissa
1 year ago
PermitRootLogin is the parameter we need to modify to enable root login over SSH.
upvoted 0 times
...
Lavera
1 year ago
Yes, you're right. The sshd_config file is where we configure SSH server settings.
upvoted 0 times
...
Chara
1 year ago
I think option C is the correct choice.
upvoted 0 times
...
...
Fletcher
1 year ago
I think the correct answer is C) /etc/ssh/sshd_config - PermitRootLogin.
upvoted 0 times
...

Save Cancel