SSH · wrap-up
Cheat sheet & self-check
9 questions across 3 lessons. Each answer links back to the lesson it came from.
Pick an answer to see if you got it, and why.
Q1. What does the server's host key prove?
Show answer
B. The server signs the key exchange with its host private key. Your client checks the public key against known_hosts.
From lesson 04 · How SSH worksQ2. You see 'WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!'. What should you do first?
Show answer
B. It can be a harmless rebuild or a man-in-the-middle. Verify, then remove only that host's entry with ssh-keygen -R.
From lesson 04 · How SSH worksQ3. In which order does SSH do things?
Show answer
B. Your password or key proof is only sent after the channel is encrypted and the server has proved its identity.
From lesson 04 · How SSH worksQ4. Which part of the key pair goes onto the server?
Show answer
B. The server only needs the public key to verify your signature. The private key never leaves your machine.
From lesson 05 · SSH keys and client configurationQ5. Your key is in authorized_keys but SSH still asks for a password. A common cause is…
Show answer
B. With StrictModes (the default), sshd ignores key files that other users could modify. The reason is written to the server's log.
From lesson 05 · SSH keys and client configurationQ6. Why is ForwardAgent risky on a server you don't fully trust?
Show answer
B. The private key isn't copied, but the agent socket can be used. Prefer ProxyJump, which needs no forwarding.
From lesson 05 · SSH keys and client configurationQ7. You added 'PasswordAuthentication no' to /etc/ssh/sshd_config, but password login still works. Why might that be?
Show answer
B. Ubuntu includes sshd_config.d/*.conf at the top of the main file, and the first value found wins. Check the real value with sshd -T.
From lesson 06 · Hardening an SSH serverQ8. What is the safest way to apply a new SSH configuration on a remote server?
Show answer
B. If the new config locks you out, the session you kept open lets you fix it.
From lesson 06 · Hardening an SSH serverQ9. Does moving SSH from port 22 to another port make it secure?
Show answer
B. A port scan finds the new port quickly. It's noise reduction, not a security control.
From lesson 06 · Hardening an SSH server