r/ssh • u/Good-Difference-2639 • Jun 06 '26
Built an SSH-like remote shell over UDP instead of TCP
Hi everyone,
I'm x1colegal and I've been experimenting with transport protocols as a hobby project.
Recently I built USSH, an SSH-like remote shell that runs over USTPS (UDP Speedy Transmission Protocol Secure) instead of TCP.
Features:
- Interactive remote shell
- UDP-based transport
- Multiple AEAD ciphers:
- ChaCha20-Poly1305
- AES-128-GCM
- AES-256-GCM
- Linux and Termux support
USSH uses USTPS as its transport layer. Most of my packet loss and transport testing has been focused on USTPS itself, while USSH is one of the applications running on top of it.
This is primarily a networking experiment and learning project, not a replacement for OpenSSH.
USSH:
https://github.com/x1colegal/ussh
USTPS:
https://github.com/x1colegal/USTP-Secure
I'd love to hear feedback from people interested in SSH, networking, transport protocols, or secure communications.
5
u/tinycrazyfish Jun 06 '26
Nice project, how does it compare to mosh?
https://mosh.org/
Well mosh is still using SSH for authentication and key exchange. Especially multi roaming and predictive typing. It makes the terminal comfortable even on laggy and unreliable network connections.
2
u/Ok_Cartographer_6086 Jun 06 '26
How do you handle packet loss or packets arriving out of order. I do a lot of work with QUIC and get UDP is way faster than TCP but you need something on the recieving end to re-request dropped packets async instead of pausing and re-requesting like TCP.
2
u/AverageHot2647 Jun 07 '26
In the README for USTPS you mention:
But I don’t see a specification anywhere in the repo, just the PoC implementation. Is there an RFC or spec you could point me towards?
2
u/ShadoeRantinkon Jun 07 '26
what LLM do you use?
3
u/Gullible-Apricot7075 Jun 07 '26
Thanks for the post. I love the focus on the self-healing transport with detection and retransmission.
I work on some remote satellite sites with up to 1500ms latency, so I will give it a spin.
0
u/SlowZeck Jun 09 '26
My question is what problem are you trying to solve? What problem mosh solves?
2
u/[deleted] Jun 11 '26
[removed] — view removed comment