QuestionQ101

VerifiedPlatform and Infrastructure Security in Cloud

Kevin Ryan has worked as a cloud security engineer for the past 2 years at a multinational company that uses AWS-based cloud services. He launched an EC2 instance using an Amazon Linux AMI. By disabling password-based remote logins, Kevin wants to eliminate all possible loopholes through which an attacker could remotely exploit a user account. To disable password-based remote logins, Kevin opened the /etc/ssh/sshd_config file in a text editor and located the #PermitRootLogin yes line. Which of the following command lines should Kevin use to modify the #PermitRootLogin yes line and disable password-based remote logins?

Explanation

PermitRootLogin without-password configures OpenSSH to prohibit root authentication by password while allowing non-password authentication methods, such as SSH public keys. AWS documentation specifically directs changing #PermitRootLogin yes to this setting when disabling password-based remote root logins.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!