Repository navigation
v2.0.0
Post-quantum key exchange
Sessions between qsh 2.0 and qshd 2.0 now get their keys from X25519MLKEM768: X25519 together with ML-KEM-768 (FIPS 203). Traffic recorded today stays private unless both are broken, so a quantum computer built later does not open it.
- Both sides need 2.0. With an older qshd the connection still works with X25519 alone, and qsh prints a warning.
qsh -vandqsh doctorname the key exchange in use. RequirePostQuantum yesin~/.config/qsh/config(or-o RequirePostQuantum=yes) makes qsh refuse older servers.require_post_quantum = truein qshd's config keeps older clients out.- Logging in still uses Ed25519 signatures. Those cannot be broken afterwards from a recording.
- ML-KEM comes from the
libcrux-ml-kemcrate, written in Rust. No new C code.
Build menu
scripts/build.py is a menu for building qsh and qshd with a chosen set of features (Python 3, nothing to install). It shows which source files the build uses, warns about risky choices, and can write a qshd.toml with the settings you pick. Profiles: hardened, full, minimal, forward-only.
New Cargo features
shellandexec: login shells and commands can now be left out, for example for a build that only forwards ports.hardened(off by default): stricter qshd defaults. 3 key proofs, 30 s to log in, 4 connections per address, 4 sessions, no-R, lost sessions kept for 10 minutes, post-quantum key exchange required.- A build without both
shellandexecruns nothing of the user's: file copies and the built-in SFTP server start directly, not through the user's shell. - Leaving out
shellalone is not a restriction, sinceqsh host bashis a command too. The build menu says so.
Upgrading
- The release binaries have everything, as before. 1.x and 2.0 connect to each other.
- If you build with
--no-default-features: it now leaves out sessions too. Add--features shell,execto get the old result.