CompTIA Linux+ Exam XK0-005 Question # 91 Topic 10 Discussion

CompTIA Linux+ Exam XK0-005 Question # 91 Topic 10 Discussion

XK0-005 Exam Topic 10 Question 91 Discussion:
Question #: 91
Topic #: 10

A systems administrator needs to disable root login for SSH. Which of the following commands should the administrator use?


A.

touch /etc/ssh/sshd_config | awk 's/PermitRootLoginX yes/PermitRootLoginX no/'


B.

sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config


C.

touch /etc/ssh/sshd_config | print* 1PermitRootLogin/PermitRootLogin no/'


D.

cat /etc/ssh/sshd_config | grep 's/PermitRootLogin yes/PermitRootLogin no/'


Get Premium XK0-005 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.