151k views
4 votes
Chris wants to prevent remote login attacks against the root account on a Linux system. What method will stop attacks like this while allowing normal users to use ssh?

A. Add an iptables rule blocking root logins.
B. Add root to the sudoers group.
C. Change sshd_config to deny root login.
D. Add a network IPS rule to block root logins.

1 Answer

1 vote

Final answer:

To prevent remote login attacks against the root account on a Linux system while allowing normal users to use ssh, the best method would be to change the sshd_config file to deny root login.

Step-by-step explanation:

To prevent remote login attacks against the root account on a Linux system while allowing normal users to use ssh, the best method would be to change the sshd_config file to deny root login. By modifying the sshd_config file, you can explicitly disable root login over ssh. This prevents potential attackers from targeting the root account while still allowing other users to access the system remotely.

User Patricktokeeffe
by
7.5k points