Answer the question
In order to leave comments, you need to log in
SSH console in browser?
Hello.
It is required to make an SSH console directly in the browser. For example, a person visits a certain site, for example, the / ssh page, and the SSH console is displayed in full screen.
1) Where can I find such a JS plugin? (Well, maybe not in JS)
2) The server will be the main one, how to set up access so that users cannot demolish something? And in general, how to issue rights so that they can create / delete / edit files only in a certain directory?
Answer the question
In order to leave comments, you need to log in
It is required to make an SSH console directly in the browser.
ssh will not work in the browser, but you can write a server on nodejs based on
https://github.com/Microsoft/node-pty (we don’t look at MS - this thing is cross-platform)
and on the client
https://github.com/xtermjs /xterm.js/ run
commands over websockets.
Since both libraries are used in vscode, their api's are well suited for sharing.
To restrict users, create a truncated unix user and run the nodejs server as that user.
By the way, there is such an addon for the fox -
FireSSH (suitable for the esr fox)
and such an addon - https://addons.mozilla.org/en/firefox/addon/sshgat...
Apache Guacamole seems to be able to do this - https://guacamole.apache.org/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question