SSH
SSH-2's transport, user-auth and connection layers give an encrypted shell, forwarded ports and the channel SFTP rides in. Nearly every infrastructure interview asks it: daily tool, prime target.
on this pageshowhide
explore
- Key Exchange & Host Keys6 questions
- Authentication Methods6 questions
- Key Agent & Forwarding5 questions
- Port Forwarding and Tunneling5 questions
- Client Config and Multiplexing6 questions
- Server Hardening6 questions
questions
page 2 of 2In OpenSSH, what does a FIDO-backed key such as [email protected] prove at login, and what do touch and verify-required add?
basics
~20 sA FIDO-backed SSH key signs inside a hardware authenticator, so a login proves that device was present; the file on disk is only a key handle. sshd requires a touch by default, and verify-required also demands a PIN-verified signature.
When does OpenSSH's ssh_config need a Match block instead of Host, and why must Match exec never see an attacker-chosen user or host name?
basics
~20 sHost matches only the typed name; Match tests other facts, such as the host after HostName substitution, the user, the local network or a command's exit status. Match exec expands tokens unquoted into a shell command, so a crafted name can inject commands.
Why did OpenSSH 9.8 and 10.0 split sshd into sshd, sshd-session and sshd-auth, and what does that split change for someone hardening a server?
basics
~20 sIt is privilege separation made structural: the root listener only accepts connections, sshd-session is each connection's privileged monitor, and since 10.0 a sandboxed, unprivileged sshd-auth handles pre-authentication traffic in its own address space. Operators see new log tags and binaries.
What did the Terrapin attack (CVE-2023-48795) do to an SSH handshake, and how does OpenSSH 9.6's strict KEX stop it?
basics
~20 sTerrapin let an on-path attacker insert ignorable messages before encryption began and delete as many after, so SSH's implicit sequence numbers matched again. Strict KEX (OpenSSH 9.6) aborts on stray messages during the initial exchange and resets sequence numbers after SSH_MSG_NEWKEYS.
showing 31–34 of 34