Repository navigation
Releases
v2.1.2
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 | shAlready installed: qsh update.
v2.1.1
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;2Mor[?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
-Nsession that was left longer thansession_timeoutcan 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-sftpanswers 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 reachcmd /CinMatch execand 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_forruns 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
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
-ra 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
.bashrcfor*.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: incp,-i,-Fandkeygen.
Config templates
- The qshd template now says which lines are defaults and which are examples, notes that a
hardenedbuild starts from stricter values, and lists seven settings it had left out (require_post_quantum,refuse_connection, the-Rsocket and X11 settings). - The client template says what
Compressiondoes 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 cpno 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
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.
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.
v1.9.1
A dependency update for a tokio advisory, and stricter checks of option values in qsh.
Security
- tokio 1.54.1 for RUSTSEC-2026-0386 (
AsyncFdI/O safety). The two places that useAsyncFd(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:
EscapeCharand-e(more than one character, other thannoneor^X);ObscureKeystrokeTimingother thanyes,noorinterval:MS;ControlMasterandControlPersistvalues qsh does not know;-wandTunnelDevicewith 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
ConnectTimeoutandServerAliveIntervalaccept ssh's time units (1m,30s). Before, such a value was dropped.
v1.9.0
Fixes from a review of qshd against OpenSSH, and a quick way to save a connection.
New
- qsh:
--save NAMEafter 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 laterqsh tunnel(or the entry inqsh 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,-gand--transportare not saved, and qsh says so.
Now refused: please read before updating
- qshd:
accept_envno longer lets a client setUSER,LOGNAME,HOME,PATH,MAIL,SHELLorQSHD_*, even withaccept_env = ["*"]. sshd also sets these itself. - qshd: with
use_pam = false,/etc/nologinkeeps everyone but root out and its text is shown, as in sshd. - qshd:
-R host.name:portwithgateway_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,
-Rports are opened by a helper running as the user, not as root, soip_unprivileged_port_startand firewall or LSM rules by uid apply, as with sshd. - Windows:
-Ron 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 --fullsees a closed UDP port at once instead of waiting for the timeout.
v1.8.0
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 to127.0.0.1:4422over TCP was refused (error 10061), so a-R ...:127.0.0.1:4422to a Windows host did not work. - New
loopback_fallback = trueinqshd.toml(off by default): a-Lor-Dtarget refused on127.0.0.1tries::1, and back. The other address must also be allowed bypermit_open. It is off because, while the service is down, another local user could listen on the other address.
qsh
- New
LoopbackFallback yesin~/.config/qsh/config(or-o LoopbackFallback=yes, off by default): a-Rtarget refused on127.0.0.1tries::1, and back. Useful when the service on your machine listens on only one of them.
v1.7.1
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
LocalForwardorRemoteForwardin~/.config/qsh/config("Bad forwarding specification"). Before, it was skipped silently. - qsh: a
ProxyJumpon an intermediate hop, or aProxyCommandon any hop but the first. Before, it was ignored. - qsh ui: saving when
~/.config/qsh/ui-hostshas hand-writtenMatchorIncludelines. Before, saving dropped them. Edit such a file by hand.
qshd
qsh cp -randscp -ruploads can no longer be redirected outside the target by swapping a directory during extraction. On Windows, device names such asCONorNULare refused.- An SFTP
OPENrefused for too many open files no longer creates or empties the file. scpto~user/new-fileworks, 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_keysnow spoils only its own line, as in sshd, not the whole file. - macOS:
~/.hushloginand~/.ssh/rcare 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 doctorand during pairing has control characters removed. qsh multino longer leaves remote commands running when its output breaks, and gets the right exit code when the config hasForkAfterAuthentication.qsh copy-idworks 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 uiandknown_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/configcan 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 0means 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 | shv1.7.0
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 asuser = "". Before, it matched every login, root included. - qshd: a config file given with
-cthat 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:0ormax-sources6:0inper_source_penalties. - qsh: a misspelled keyword in
~/.config/qsh/config, as in ssh ("Bad configuration option").IgnoreUnknownstill works.~/.ssh/configis left to ssh. - qsh: a file pulled in with
Includethat other users can write, also from/etc/ssh/ssh_config, as in ssh./etc/ssh/ssh_configitself is checked too.
qshd
qshd -tand 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 -tsays 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 inaddress. qshd -T -Cneedsaddr=when a rule tests the address, as in sshd.- The warning that passwords cannot work without root now also shows in
qshd -tand after a reload. session_scopeis reported as needing a restart.
qsh
RefuseConnectionworks in config files. Before, only-o RefuseConnectionwas 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
Matchblock qsh cannot check now also counts when it comes from a file the block includes. - Hosts saved in
qsh uino longer override a block in~/.ssh/configthat names the same host. They still win over blocks for many hosts such asHost *. qsh -Gshows the security settings too (host key checking, passwords, agent and X11 forwarding...), with-A,-tand--accept-new-hostapplied.- An ssh keyword in
~/.config/qsh/configthat 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