Skip to content

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 09:34
· 38 commits to main since this release

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.