T
T
Toopie2018-09-24 21:08:58
JavaScript
Toopie, 2018-09-24 21:08:58

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

5 answer(s)
A
AVKor, 2018-09-24
@AVKor

It is required to make an SSH console directly in the browser.

Do it. Or freelancing for money.
Configure OpenSSH server (Subsystem sftp, configure for group: Match Group or users: Match User).

A
Alexander Taratin, 2018-09-24
@Taraflex

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.

O
Orkhan Hasanli, 2018-09-24
@azerphoenix

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...

V
Vadim K, 2018-09-25
@OLQLOSH

Apache Guacamole seems to be able to do this - https://guacamole.apache.org/

A
Ainur Valiev, 2018-09-25
@vaajnur

https://github.com/chjj/term.js/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question