Repository navigation
v1.10.0
Security fixes from a review of qsh and qshd, signed updates, a locked-down build, and friendlier config values.
Please read before updating
qsh updatefrom 1.9.x works as before. From 1.10.0 on, it installs only signed releases, so releases older than 1.10.0 can no longer be installed withqsh update(use the install script for them).- qsh: in
~/.config/qsh/config, a value that is none of a setting's choices (BatchMode maybe) is now an error instead of a quiet "no". ssh's own files are not checked, as before. - qsh:
Hostpatterns in~/.ssh/configare now case-sensitive, as in ssh (Host MyServerno longer matchesqsh myserver). qsh's own config still ignores case. - qsh: your own
known_hostsis refused when anyone may write it or another user owns it; such a system file is skipped with a warning. - qshd: with
gateway_ports = "yes",permit_listenandpermitlisten=are checked against all addresses, where qshd really listens:"localhost:9000"no longer allows it,"*:9000"does. - qshd:
qshd -trefuses counts above 1 000 000 and times above ten years (they used to crash qshd later). - qsh punch: the packet format changed; both sides need 1.10.0.
Security
- Text from the server (banner, errors,
qsh cp,qsh multi,qsh doctor) and the host in "Last login" no longer pass invisible Unicode characters, such as right-to-left overrides that reorder what the terminal shows. qsh forgetalso removes pattern lines (*.example.com) that trust the host, asssh-keygen -Rdoes.- A
ProxyJumporProxyCommandin aMatchblock qsh cannot check, in qsh's own config, refuses the connection instead of connecting directly. - Address ranges written as
::ffff:127.0.0.0/104now match IPv4 clients indeny_users,allow_usersand[[match]]. qsh punch: each packet carries a counter and an HMAC; the shared secret is never sent, and a replayed packet cannot move the tunnel.QSH_PUNCH_IDsets the secret without showing it in the process list.- qshd reads the first message of a connection with a 4 KiB limit, so a huge user name cannot flood the log.
- qsh holds host certificate authorities to the server's key rules (RSA of 2048 bits or more, no DSA) and refuses host certificates with critical options.
- The
.pubfile of a new key is never written through a link someone put in its place, and new directories for keys are private. - Smaller fixes: a resumed upload with a wrong size from the helper, 256 or more
-t/-vflags, a huge window size with echo prediction, agents with more than 1024 keys,-Nreconnecting forever (it gives up after an hour), and a hangup sometimes taken for a dropped connection. - Not affected by CVE-2026-123158 (OpenSSH on musl without PAM): qshd checks passwords without
crypt(), never accepts locked accounts, and a test now covers it.
Signed updates
qsh updatechecks the signature of the release'sSHA256SUMSagainst the release key built into qsh, runs the release's installer only if its checksum is listed there, and refuses a release older than the installed qsh unless asked for by name.
Locked-down build
- Every convenience is now a Cargo feature, on by default.
cargo build --release --no-default-featuresbuilds a qsh and qshd with only a shell and commands, keys and certificates, and known host keys; qshd refuses requests for the rest before any of their code runs. See "Locked-down build" in the README.
Config
- qsh: yes/no settings also take
1/0,on/off,true/false, andLocalForwardtakes the-Lform (LocalForward 8080:localhost:80). - qshd: choices in any case (
"No","ClientSpecified"), times with units ("90s","5m","1h30m"), numbers in quotes, and a hint forport = ...(qshd useslisten).
Static Linux binaries (musl) for x86_64 and aarch64, macOS (Apple Silicon and Intel), Windows (qsh and qshd), and a native Android build for Termux (qsh-aarch64-android).
curl -fsSL https://github.com/VLOD-ZDOV/quic-ssh/releases/latest/download/install.sh | shAlready installed: qsh update.
See the README for setup.