4 ms·
This makes me think about something I thought of a while back, is there any library/app which lets me expose a TUI/cli-app over ssh without actually caring abou
by hultner 3y ago
This makes me think about something I thought of a while back, is there any library/app which lets me expose a TUI/cli-app over ssh without actually caring about securing OpenSSH for this use case?
- gopalv 3y agoAre you thinking of something like the Blinkenlights Star Wars telnet demo from a while ago? The "securing" part aside, ssh still gives you a whole terminal experience very similar to the telnet one & the ability to draw into it (like if you were using Emacs on the shell host). You can set something like that up by forcing a command on ssh instead of a shell (like what github does for git).
- hultner 3y agoYeah I was thinking of something like that. But I still feel a bit uneasy with configuring OpenSSH securely, I’ve escaped such setups before, gaining full shell access through exploits. Maybe I’m overly paranoid.
- tinus_hn 3y agoNo you’re not, there are far too many unexplored interfaces. Then again many programs aren’t secure against untrusted input either.
- yjftsjthsd-h 3y agoLike ForceCommand, or turning off authentication?
- AceJohnny2 3y agoDo you mean something like Paramiko, an SSH library for Python? https://www.paramiko.org https://www.paramiko.org
- dizhn 3y agohttps://github.com/charmbracelet/wish https://github.com/charmbracelet/wish If you're actually willing to write the app.
- VLM 3y agoSomething like Apache Guacamole as a https web to SSH "something" gateway? Go to http-something in your web browser which is a Guacamole install and log in to Guacamole as "guest" / "guest" then in guac the only connection option is some SSH login that'll appear in your web browser As a warning people have tried to supply "nethack as-a-service" or whatever and people are really creative about gaining shell access somehow anyway, via buffer overflows or who knows what. You can do it, just be careful.
- Eduard 3y agoMaybe "poor man's SSH via websocketd" could be a building block? https://github.com/rowanthorpe/ws-repl https://github.com/rowanthorpe/ws-repl
- codethief 3y agoTailscale comes to mind, see https://tailscale.com/kb/1100/services/ https://tailscale.com/kb/1100/services/
- tingletech 3y agosomeone posted an ssh bbs the other week https://news.ycombinator.com/item?id=35412416 https://news.ycombinator.com/item?id=35412416
- e12e 3y agoThe go ssh packages are a popular choice: https://github.com/shazow/ssh-chat https://github.com/shazow/ssh-chat https://github.com/zachlatta/sshtron https://github.com/zachlatta/sshtron https://github.com/quackduck/devzat https://github.com/quackduck/devzat https://github.com/donuts-are-good/shhhbb/ https://github.com/donuts-are-good/shhhbb/ There's also a assembly library: https://2ton.com.au/sshtalk/ https://2ton.com.au/sshtalk/ And for rust there's trush, and for python paramiko as mentioned. > expose a TUI/cli-app over ssh without actually caring about securing OpenSSH If you already have an app, see maybe: https://drewdevault.com/2019/09/02/Interactive-SSH-programs.html https://drewdevault.com/2019/09/02/Interactive-SSH-programs....
- russellendicott 3y agoNot exactly what you're looking for but to solve a similar problem I've been working on a TUI-over-the-wire protocol. http://uggly.bytester.net http://uggly.bytester.net