基于浏览器的终端:pm2-webshell
jopen
9年前
pm2-webshell 是一个完全基于浏览器的终端。
pm2-webshell is the first notable proof of concept. It allows you to expose a fully capable terminal straight in your browser, available from anywhere (this is configurable). Under the hood, it uses the pty.js modules allowing you to fork processes with pseudo terminal file descriptors.
You can configure pm2-webshell to:
- Change the username and password for authentication
- Change the listening port
- Use HTTPS instead of HTTP to securely transit data from your browser to the module
安装:
$ pm2 install pm2-webshell $ google-chrome http://localhost:8080
配置:
# Changer user $ pm2 set pm2-webshell:username foo # Change password $ pm2 set pm2-webshell:password bar # Change port $ pm2 set pm2-webshell:port 7890 # HTTPS $ pm2 set pm2-webshell:https true