Asked by GIANSH GUPTA KHUNDKER · BIRLA BRAINIACS
Answer: B. Loading a trusted keys file via ssh.load_host_keys() and enforcing strict verification.
Answer: B) Loading a trusted keys file via ssh.load_host_keys() and enforcing strict verification.
Explanation: While AutoAddPolicy() is convenient for quick testing, it blindly accepts any unknown host key. In a production or hostile network environment, this leaves the script completely vulnerable to Man-in-the-Middle (MitM) attacks. Loading known, verified keys is the only way to validate server identities reliably.
Answering after opening this box earns no Practice Points.