sshconfig-lint / classroom
SSH config classroom worksheet
A printable 20-minute exercise for learning how OpenSSH chooses settings and how to spot unsafe configuration.
Find and explain five mistakes
- Determine which User applies to school-server.
- Find the setting that disables host-key protection.
- Explain why the ControlPath can collide.
- Identify the obsolete cipher.
- Consolidate the duplicate Host block.
Host *
StrictHostKeyChecking no
User deploy
ControlMaster auto
ControlPath ~/.ssh/control-%h
Host school-server
HostName 203.0.113.42
User student
Ciphers aes256-gcm@openssh.com,3des-cbc
Host school-server
IdentityFile ~/.ssh/id_ed25519