skip to content

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 pageshow

explore

questions

page 2 of 2

In OpenSSH, what does a FIDO-backed key such as [email protected] prove at login, and what do touch and verify-required add?

level: seniorimportance: nice to knowfreq 9%

basics

~20 s

A 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.

open as a page

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?

level: seniorimportance: nice to knowfreq 12%

basics

~20 s

Host 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.

open as a page

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?

level: seniorimportance: nice to knowfreq 8%

basics

~20 s

It 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.

open as a page

What did the Terrapin attack (CVE-2023-48795) do to an SSH handshake, and how does OpenSSH 9.6's strict KEX stop it?

level: seniorimportance: nice to knowfreq 11%

basics

~20 s

Terrapin 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.

open as a page

showing 31–34 of 34