Which of the following lines in the sshd configuration file should, if present, be changed in order to increase the security of the server? (Choose two.)
I think A and D are correct. The question asks for which lines SHOULD be changed; A enables SSH v1 which by default is disabled, and PermitRootLogin is by default set to prohibit-password and this lines allows it instead.
B. PermitEmptyPasswords no - This line ensures that empty passwords are not permitted, which is important for security as it prevents users from having blank passwords.
D. PermitRootLogin yes - This line allows root login directly, which is generally considered a security risk. Changing it to "no" would disallow direct root login, requiring users to log in as a regular user and then switch to root using sudo or su, which is a more secure practice.
So, the correct options are B and D.
No.. PermitEmptyPassword no sholdn't be changed. The question asks "if present, must be changed". If you want to make it secure, you must have that option set as NO.
This answer is corret. B and D
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.
saod
Highly Voted 3 years, 5 months agoA2AudioAddict
Most Recent 5 months, 3 weeks agoSDXIN
7 months, 1 week agoglorofarz
4 years, 3 months agoAdonist
4 years, 2 months agobiggydanny
4 years ago