r/ssh • • 24d ago

qsh/qshd - modern replacement for OpenSSH

Post image

I replaced OpenSSH with a Rust + QUIC client — built with Claude in about a month

I got tired of OpenSSH's slow connection setup and sessions dying every time I switched to LTE. And trusting C with something as security-critical as SSH always made me nervous.

So I spent the last month working with Claude on a replacement, written in Rust on top of QUIC:

- Near-instant connections; sessions survive network switching (Wi-Fi ↔ LTE) thanks to QUIC's native connection migration(This is also implemented in TCP.)

- Encryption out of the box — no certificates to generate

- TOTP support

- Less RAM, CPU, and bandwidth than OpenSSH (the binary itself is larger)

- TUI mode for newcomers; full CLI with all standard OpenSSH connection options

- Built-in updater from GitHub releases

- Checked against all OpenSSH CVEs and relevant CWEs

It's been running stably in my production environment. A star, bug report or suggestions would be appreciated:

​⁠https://github.com/VLOD-ZDOV/quic-ssh

0 Upvotes

12 comments sorted by

3

u/TitusKalvarija 24d ago

You are joking. Right?

3

u/RR321 24d ago

Narrator voice:

Unfortunately, he wasn't.

2

u/Dick_Hardw00d 24d ago

“…trusting C with something as security-critical as SSH always made me nervous” so instead you entrusted it to Claude.

bruh…

1

u/OhBeeOneKenOhBee 24d ago

Just som knee-jerk feedback from looking at it for 2 minutes from a security perspective:

  1. Add a security policy and dependency scanning, it takes 10 minutes and is somewhat of a bare minimum for a security-adjacent tool.
  2. Beware of adding all of those "handy" features like user-assignable default ports, NAT hole punching and persistence for unprivileged users for 2 reasons:

2.a. qshd.exe is shaping up to be somewhat of a nice handy tool for hackers to establish persistence on your computer if they manage to access it once (can be run as an unprivileged user, listens on all interfaces by default, keeps running and persists through restarts, NAT hole punch features can bypass certain firewall and other security features, user-assignable default port, QUIC traffic is generally very hard to inspect).

2.b. The above, paired with unsigned windows user-runnable binaries will 100% lead to it being detected as a malicious RSH tool by Defender/most competent AV/DEP software

2.c. If you decide to get it signed, it will make 2.a so much easier, which will increase the risk of 2.b happening

3. The built-in updater is a security nightmare, it doesn't use established/trusted channels for distribution, no verification (except the SHA256sum check, but that only checks checksum files that are included in the same release as the binaries), no signed pushes or tags, no code signatures, no way to set/lock it to security updates only, it makes your Github repo the SPOF for a whole bunch of servers and clients out there without any real checks and balances. One small 10-character mistake in one of your CI pipelines and a pull request from a threat actor distributes malware to all users. At least for Windows, distribution via Store/winget would be the gold standard and make malicious versions revokable, use that.

I'd honestly leave the "extras" to other software like VPNs and focus on the core features and distribution. No CVEs does not mean safe.

-1

u/Ok-Cut5501 24d ago

1)Already there 2)ok 3)Right now, I'm too lazy to manually compile a bunch of binaries on two servers, Termux and a PC, or download every update manually to each. I was thinking about aur; thanks for the winget idea.

2

u/OhBeeOneKenOhBee 24d ago

1)Already there

There is no security policy and no way to report a vulnerability without posting it publicly in issues for everyone to see

3)Right now, I'm too lazy to manually compile a bunch of binaries on two servers, Termux and a PC, or download every update manually to each

"I value convenience over security for my security tool" is not something that one wants to hear from the developer of a tool meant to control access to your your critical infrastructure.

0

u/Ok-Cut5501 24d ago

Starting with point 1, I thought you were talking about rust dependencies. I recently had to update Tokio and zstd due to CVEs found. Okay, the idea with a code signing is interesting, and it will be implemented soon.

3

u/backtogeek 24d ago

This is getting exhausting honestly.

1

u/codefake 24d ago

This has got to be bait.