Questions: SSH: Secure Shell and Remote Access

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An attacker with a full packet capture of an SSH session between a client and server can read which of the following?

APasswords and commands, but not the server's responses
BNothing useful — the entire session payload is encrypted after the handshake
COnly the initial handshake, which is sent in plaintext before encryption is established
DCommands typed by the user but not files transferred via SCP
Question 2 Multiple Choice

How does SSH verify the identity of a server, and how does this differ from how TLS/HTTPS verifies a web server's identity?

ASSH uses certificate authorities (CAs) to sign host keys, just like TLS uses CAs for certificates
BSSH uses trust-on-first-use: the client accepts and stores the server's key on first connection, then verifies it matches on all subsequent connections
CSSH does not verify server identity — only the user's identity is verified
DSSH requires the server to present a certificate signed by a trusted CA before any connection is allowed
Question 3 True / False

SSH encrypts the authentication phase (login) but transmits commands and responses in plaintext once the session is established.

TTrue
FFalse
Question 4 True / False

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.

TTrue
FFalse
Question 5 Short Answer

Why is key-based SSH authentication strongly preferred over password authentication for automated systems and CI/CD pipelines?

Think about your answer, then reveal below.