Skip to content

Releases

v2.1.2

Choose a tag to compare

@github-actions github-actions released this 24 Nov 03:20

A minor update bringing terminal compatibility improvements, session resume output hardening, and WinGet support.

Terminal

• SetEnv TERM: qsh now uses the configured TERM value for PTY requests, matching OpenSSH. If unset or empty, it falls back to the local TERM environment variable (and xterm-256color by default). This fixes lost colors and capabilities when connecting from terminals whose terminfo is missing on the remote host.

Security

• Session resume: server error messages returned when resuming an expired or invalid session are now sanitized. Invisible and directional format characters (Unicode Cf) are stripped and message lengths are capped, preventing display spoofing in the client terminal.

Packaging

• Added Windows Package Manager (WinGet) manifest generation and automation.

Upgrading

2.1.2 is fully compatible with 2.0 and 2.1 servers and clients. All changes in this release are on the client side (qsh).

curl -fsSL https://github.com/VLOD-ZDOV/quic-ssh/releases/latest/download/install.sh | sh

Already installed: qsh update.

v2.1.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 09:35

A fix release: one terminal annoyance and a few server-side issues from a review.

Terminal

  • After a session ends, the local shell no longer prints junk like <35;176;2M or [?61;4;6;7c. Those were mouse reports and the terminal's answers to the remote shell's last questions (fish asks for the cursor position and background color). On exit qsh now asks the terminal for its status and takes in everything that comes before the answer. Keys you type after that still reach your shell. Linux and macOS only.

Fixed

  • Pairing: two tries at the same moment now use up two of the code's three tries, not one.
  • A -N session that was left longer than session_timeout can no longer be resumed.
  • One-time codes: a slow or stuck file system in one user's home no longer holds up the one-time code logins of other users.
  • Failed logins no longer walk the whole penalty table each time.
  • internal-sftp answers pipelined requests in one write instead of one per reply, and a handle of the wrong length is treated as a malformed request.
  • Windows: host names with % or ^ are refused, because they reach cmd /C in Match exec and similar commands. A % in an IPv6 zone (fe80::1%12) still works.
  • The qshd config template now says correctly that port forwards and the agent keep working after totp_valid_for runs out.

Upgrading

2.1.1 connects to 2.0 and 2.1. The terminal and Windows fixes are in qsh, the rest in qshd.

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 16:14

Wildcards in qsh cp

qsh cp 'host:logs/*.log' . now works: * and ? in a remote path are expanded by the server, in any part of the path (host:*/app.log).

  • Needs qshd 2.1 on the server. An older qshd gets the path as it is, as before.
  • With -r a pattern takes files and directories alike. Without it, directories fail and the files are still copied.
  • Several matches need a directory to go into. No match is an error.
  • As in a shell, * skips names that start with a dot. Use .* for those.
  • The client checks every name the server answers with against your pattern before it writes anything, so a server cannot hand you a .bashrc for *.log.

Windows

What a Unix shell does to a command line, qsh now does itself on Windows:

  • qsh cp *.txt host:dir/ expands * and ? in local paths (case is ignored, *.* means everything).
  • Single quotes around a path are taken off, so qsh cp 'host:logs/*.log' . works in cmd.exe, PowerShell and on Linux alike.
  • A leading ~ in a local path is your profile folder: in cp, -i, -F and keygen.

Config templates

  • The qshd template now says which lines are defaults and which are examples, notes that a hardened build starts from stricter values, and lists seven settings it had left out (require_post_quantum, refuse_connection, the -R socket and X11 settings).
  • The client template says what Compression does when unset: terminal output is compressed, copies are not.
  • Templates are only written when no config exists, so your files are not changed.

Fixed

  • qsh cp no longer reports "sending stopped by peer" for an upload that arrived whole. It happened when the server confirmed the file before the client had finished closing the stream.

Tests

New tests for the security review: setuid bits on uploads, the login signature's binding to its connection, empty certificate principals, and arguments that are not UTF-8. The review now names the test behind each row that has one.

Upgrading

2.0 and 2.1 connect to each other. Update qshd to use wildcards in remote paths.

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 14:12

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.

v1.10.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 21:10

Security fixes from a review of qsh and qshd, signed updates, a locked-down build, and friendlier config values.

Please read before updating

  • qsh update from 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 with qsh 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: Host patterns in ~/.ssh/config are now case-sensitive, as in ssh (Host MyServer no longer matches qsh myserver). qsh's own config still ignores case.
  • qsh: your own known_hosts is 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_listen and permitlisten= are checked against all addresses, where qshd really listens: "localhost:9000" no longer allows it, "*:9000" does.
  • qshd: qshd -t refuses 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 forget also removes pattern lines (*.example.com) that trust the host, as ssh-keygen -R does.
  • A ProxyJump or ProxyCommand in a Match block qsh cannot check, in qsh's own config, refuses the connection instead of connecting directly.
  • Address ranges written as ::ffff:127.0.0.0/104 now match IPv4 clients in deny_users, allow_users and [[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_ID sets 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 .pub file 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/-v flags, a huge window size with echo prediction, agents with more than 1024 keys, -N reconnecting 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 update checks the signature of the release's SHA256SUMS against 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-features builds 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, and LocalForward takes the -L form (LocalForward 8080:localhost:80).
  • qshd: choices in any case ("No", "ClientSpecified"), times with units ("90s", "5m", "1h30m"), numbers in quotes, and a hint for port = ... (qshd uses listen).

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 | sh

Already installed: qsh update.

See the README for setup.

v1.9.1

Choose a tag to compare

@github-actions github-actions released this 09 Nov 18:07

A dependency update for a tokio advisory, and stricter checks of option values in qsh.

Security

  • tokio 1.54.1 for RUSTSEC-2026-0386 (AsyncFd I/O safety). The two places that use AsyncFd (terminal input in qshd, tunnel devices) now use tokio's new constructors. Both already owned their descriptors, so no known way to exploit this in qsh.

Now refused: please read before updating

  • qsh: a bad option value is now an error, as in ssh, instead of being replaced by the default without a word. This covers:
    • EscapeChar and -e (more than one character, other than none or ^X);
    • ObscureKeystrokeTiming other than yes, no or interval:MS;
    • ControlMaster and ControlPersist values qsh does not know;
    • -w and TunnelDevice with an empty side (1: or :1);
    • numbers that do not parse in qsh's config and -o: Port, ConnectTimeout, ConnectionAttempts, ServerAliveInterval, ServerAliveCountMax. ssh's own config files are not checked, as before.

qsh

  • ConnectTimeout and ServerAliveInterval accept ssh's time units (1m, 30s). Before, such a value was dropped.

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 09:34

Fixes from a review of qshd against OpenSSH, and a quick way to save a connection.

New

  • qsh: --save NAME after the host keeps the whole command line as a saved connection: qsh -N -R 2222:127.0.0.1:4422 -p 4422 user@server --save tunnel. It connects as usual, and later qsh tunnel (or the entry in qsh ui) does the same. The host, user, port, key, forwards and other options are saved in ~/.config/qsh/ui-hosts. A name that is already saved needs --force. A remote command, -W, -g and --transport are not saved, and qsh says so.

Now refused: please read before updating

  • qshd: accept_env no longer lets a client set USER, LOGNAME, HOME, PATH, MAIL, SHELL or QSHD_*, even with accept_env = ["*"]. sshd also sets these itself.
  • qshd: with use_pam = false, /etc/nologin keeps everyone but root out and its text is shown, as in sshd.
  • qshd: -R host.name:port with gateway_ports = "clientspecified" is refused with a clear error. Before, it quietly listened on loopback. Give an address instead.
  • qshd: file transfers and speed tests now count against max_sessions. Speed tests are refused for keys with a forced command.

qshd

  • In system mode, -R ports are opened by a helper running as the user, not as root, so ip_unprivileged_port_start and firewall or LSM rules by uid apply, as with sshd.
  • Windows: -R on ports below 1024 works. Before, it was refused for every user.

qsh

  • An X11 connection that sends nothing for 10 seconds is closed, so idle connections cannot use up the forwarded display.
  • Windows: qsh --full sees a closed UDP port at once instead of waiting for the timeout.

v1.8.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 08:23

A small release about port forwards to 127.0.0.1 and ::1.

qshd

  • Windows: the TCP port of qshd on [::] now takes IPv4 connections too. Before, a connection to 127.0.0.1:4422 over TCP was refused (error 10061), so a -R ...:127.0.0.1:4422 to a Windows host did not work.
  • New loopback_fallback = true in qshd.toml (off by default): a -L or -D target refused on 127.0.0.1 tries ::1, and back. The other address must also be allowed by permit_open. It is off because, while the service is down, another local user could listen on the other address.

qsh

  • New LoopbackFallback yes in ~/.config/qsh/config (or -o LoopbackFallback=yes, off by default): a -R target refused on 127.0.0.1 tries ::1, and back. Useful when the service on your machine listens on only one of them.

v1.7.1

Choose a tag to compare

@github-actions github-actions released this 03 Nov 17:45

A bug-fix release: about 70 small fixes found by reviewing every source file. Most are edge cases.

Now an error: please read before updating

  • qsh: a malformed LocalForward or RemoteForward in ~/.config/qsh/config ("Bad forwarding specification"). Before, it was skipped silently.
  • qsh: a ProxyJump on an intermediate hop, or a ProxyCommand on any hop but the first. Before, it was ignored.
  • qsh ui: saving when ~/.config/qsh/ui-hosts has hand-written Match or Include lines. Before, saving dropped them. Edit such a file by hand.

qshd

  • qsh cp -r and scp -r uploads can no longer be redirected outside the target by swapping a directory during extraction. On Windows, device names such as CON or NUL are refused.
  • An SFTP OPEN refused for too many open files no longer creates or empties the file.
  • scp to ~user/new-file works, as with OpenSSH.
  • A very large penalty time in the config no longer stops qshd from accepting connections. An exempt IPv6 address is no longer blocked because a neighbor was penalized.
  • Leaving during key login counts as a failed login only after a key was actually refused.
  • At most 64 X11 connections at a time per forward.
  • A forwarded agent kept with a session is only given back to the same user with the same restrictions.
  • One byte that is not UTF-8 in authorized_keys now spoils only its own line, as in sshd, not the whole file.
  • macOS: ~/.hushlogin and ~/.ssh/rc are checked as the user, not as root.
  • Windows: SFTP can set times on read-only files.

qsh

  • When a server only accepts the TLS key, qsh retries with your key only on a server with the key you already accepted.
  • Text from the server in qsh doctor and during pairing has control characters removed.
  • qsh multi no longer leaves remote commands running when its output breaks, and gets the right exit code when the config has ForkAfterAuthentication.
  • qsh copy-id works when the remote shell prints a banner, and no longer joins the key to a last line without a newline.
  • An interrupted download of a read-only file can be resumed.
  • qsh ui and known_hosts: files that cannot be read are no longer overwritten as empty, and lines that are not touched are kept byte for byte.
  • qsh ui: hosts from ~/.ssh/config can have their groups and transport changed again, and a failed save or delete puts the groups back.
  • After a reconnect, X11 forwarding now ends with a message instead of looking active.
  • ForwardX11Timeout 0 means no timeout, as in ssh.
  • Config files that are not valid UTF-8 are read instead of being treated as empty.

Update with qsh update, or install with:

curl -fsSL https://github.com/VLOD-ZDOV/quic-ssh/releases/latest/download/install.sh | sh

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 10:19

Settings you write but that would silently not apply are now refused or shown. Some configs that worked before now stop qsh or qshd with an error. Check before updating: qshd -t on servers, qsh -G host on clients.

Now an error: please read before updating

  • qshd: a setting written below a table header ([set_env], [subsystems]) instead of above it. Before, permit_root_login = "no" written there silently became an environment variable.
  • qshd: an empty [[match]] condition such as user = "". Before, it matched every login, root included.
  • qshd: a config file given with -c that does not exist, or a config that is gone on reload. Before, qshd ran on the defaults. On reload the old config now stays.
  • qshd: max-sources4:0 or max-sources6:0 in per_source_penalties.
  • qsh: a misspelled keyword in ~/.config/qsh/config, as in ssh ("Bad configuration option"). IgnoreUnknown still works. ~/.ssh/config is left to ssh.
  • qsh: a file pulled in with Include that other users can write, also from /etc/ssh/ssh_config, as in ssh. /etc/ssh/ssh_config itself is checked too.

qshd

  • qshd -t and the log name each [[match]] block that changes who may log in or how, for example [[match]] #2 (user = backup) changes password_authentication: false -> true. A setting that ended up inside a block by mistake shows right away.
  • qshd -t says which file it read. Without root that is the user-mode config, not /etc/qsh/config.toml.
  • Warnings for conditions that never match: a list of only ! entries (user = "!root") and host names in address.
  • qshd -T -C needs addr= when a rule tests the address, as in sshd.
  • The warning that passwords cannot work without root now also shows in qshd -t and after a reload.
  • session_scope is reported as needing a restart.

qsh

  • RefuseConnection works in config files. Before, only -o RefuseConnection was refused.
  • A refusal in ~/.config/qsh/config (RefuseConnection, RevokedHostKeys) also stops --full. ssh does not read that file, so before it connected without the check.
  • A proxy or refusal in a Match block qsh cannot check now also counts when it comes from a file the block includes.
  • Hosts saved in qsh ui no longer override a block in ~/.ssh/config that names the same host. They still win over blocks for many hosts such as Host *.
  • qsh -G shows the security settings too (host key checking, passwords, agent and X11 forwarding...), with -A, -t and --accept-new-host applied.
  • An ssh keyword in ~/.config/qsh/config that qsh does not carry out gives a warning with file and line (not with -q).

Update with qsh update, or install with:

curl -fsSL https://github.com/VLOD-ZDOV/quic-ssh/releases/latest/download/install.sh | sh