Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 14:12
· 22 commits to main since this release

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 -v and qsh doctor name the key exchange in use.
  • RequirePostQuantum yes in ~/.config/qsh/config (or -o RequirePostQuantum=yes) makes qsh refuse older servers.
  • require_post_quantum = true in 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-kem crate, 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

  • shell and exec: 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 shell and exec runs nothing of the user's: file copies and the built-in SFTP server start directly, not through the user's shell.
  • Leaving out shell alone is not a restriction, since qsh host bash is 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,exec to get the old result.