I had the idea for an in-browser ssh client, but i couldnt find any detailed explanation on how to write a SSH client. I tried looking it up but i couldnt find anything(Most results were about Putty or rankings of clients).
One idea would be to write an express app on the server that just executes the command it gets by the URL paramater or something else, but
I think it works similarly to a websocket. First you send a normal http request or something and then you try to "upgrade" the request to a ssh tunnel
How does http/ssh protocol work? couldnt help
Edit: Any Keywords or links to articles about how to code your own SSH Client or server would help
Thanks
You may just tunnel your ssh connection through Web Socket. The problems are how you build the functionality of ssh client if you want ssh connections start from local users. To develop the client in browser(meanwhile in a site), the most works can only be done by JavaScript. However, because of secure problems, JavaScript has lots of limits in contrast with normal local programs.
The another way you provide that execute commands on server is surely easy to do, but the problem is : how can I trust the web application and the server as I need to provide my private information? If I can use mature ssh technology to 100% ensure my security, how do we make people believe that the ssh web application is totally safe and willing to use it?