jasonbio / reddit-shell

web based linux shell emulator that allows you to browse reddit via command line
https://redditshell.com/
GNU General Public License v3.0
434 stars 38 forks source link

Implement as ssh server #6

Closed Marak closed 7 years ago

Marak commented 9 years ago

Just some food for thought.

You could build this as an actual terminal application, use https://github.com/chjj/term.js/ to serve it to the web, and then provide an SSH interface that users could SSH into to use the terminal app remotely.

I've used this pattern before for these types of applications and it works well.

LaurentFough commented 9 years ago

I like this idea. May take on the challenge.

jasonbio commented 9 years ago

Hmm interesting. Wouldn't most users prefer to run something locally though rather than remotely, especially when accessing from their own environment?

Marak commented 9 years ago

Implementing client as SSH server requires you build Command Line Tool and serve it remotely. It's a remote SSH interface to a CLI tool that lives on server.

If you have the Command Line Tool built, you can just as easily install it locally and run from your own command line.

That is beauty of idea. Instead building JavaScript DOM code, you build CLI tool and expose it via web and ssh and local download.

Marak commented 9 years ago

To give you an idea, if you built a CLI tool, the SSH interface to serve it is about 20 lines of bash.

Marak commented 9 years ago

And the web interface is about 10 lines of javascript stream wrappers to term.js project

jasonbio commented 7 years ago

Decided not to do this, closing the issue