Question 520
Following lab verification, document the preventive or persistence-oriented procedure for: A lab SSH account still accepts password-only access while the approved policy requires authorized public-key authentication. Which practice is most suitable?
Explanation
Correct Answer
Keep a verified break-glass console path before tightening authentication methods. This guards against recurrence of: SSH authentication methods are enforced by sshd configuration and authorized key material. Confirm the lab's final state by: Key-based login succeeds while a controlled password-only attempt fails without locking out the authorized admin.
Incorrect Answers
Test positive and negative access after SSH authorization changes. That control is best suited to a separate scenario: A server's `sshd` service is enabled but remote login fails because host key authentication was never established for the test user. It is not the best safeguard for the current mechanism: SSH authentication methods are enforced by sshd configuration and authorized key material.
Use policy-backed fcontext mappings for nonstandard service directories. That control is best suited to a separate scenario: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. It is not the best safeguard for the current mechanism: SSH authentication methods are enforced by sshd configuration and authorized key material.
Verify persistence and remove temporary diagnostic firewall permits. That control is best suited to a separate scenario: A firewall change is tested using only a runtime rule, but an administrator assumes it will be present after restart. It is not the best safeguard for the current mechanism: SSH authentication methods are enforced by sshd configuration and authorized key material.