5 questions to test your understanding
An attacker with a full packet capture of an SSH session between a client and server can read which of the following?
How does SSH verify the identity of a server, and how does this differ from how TLS/HTTPS verifies a web server's identity?
SSH encrypts the authentication phase (login) but transmits commands and responses in plaintext once the session is established.
In SSH key-based authentication, the private key never leaves the client machine — the server verifies the client's identity through a cryptographic challenge that the client answers using the private key.
Why is key-based SSH authentication strongly preferred over password authentication for automated systems and CI/CD pipelines?