https://github.com/ryleeharrison/mini-remote-shell-execution
Mini JavaScript client/server remote shell execution
https://github.com/ryleeharrison/mini-remote-shell-execution
pty remote-shell shell tcp-socket xterm-js
Last synced: about 1 month ago
JSON representation
Mini JavaScript client/server remote shell execution
- Host: GitHub
- URL: https://github.com/ryleeharrison/mini-remote-shell-execution
- Owner: RyLeeHarrison
- License: mit
- Created: 2018-08-06T19:48:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-06T20:10:39.000Z (over 6 years ago)
- Last Synced: 2025-01-31T12:17:28.157Z (3 months ago)
- Topics: pty, remote-shell, shell, tcp-socket, xterm-js
- Language: JavaScript
- Size: 236 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mini-remote-shell-execution
Mini JavaScript client/server remote shell executionvery minimal
## Start the server
Clone and run the server
```sh
git clone https://github.com/RyLeeHarrison/mini-remote-shell-execution
cd mini-remote-shell-execution-master
yarn install # or npm install
node server.js # exposes port 1338
```## Connecting to the shell
you can connect with telnet as well as nc, your choice
```sh
nc localhost 1338
```
or telnet
```sh
telnet localhost 1338
```
## Windows ?
I used the package "node-pty" to so it could be used with something like [xterm.js](https://github.com/sourcelair/xterm.js)"`node-pty` supports Linux, macOS and Windows. Windows support is possible by utilizing the [winpty](https://github.com/rprichard/winpty) library."
See the [node-pty](https://www.npmjs.com/package/node-pty) package for more information