JavaScript (or JS+PHP) Terminal Client

隐身守侯 提交于 2019-12-20 10:55:17

问题


Does anyone know of a JS-based terminal client? Either something that initiates an SSH connection with a remote host or even something that simply communicates with a remote PHP script to execute commands and retrieve output. Does such a thing exist?


回答1:


Check Anyterm, it uses a XmlHttpRequest channel to communicate with a daemon that uses a pseudo-terminal to communicate with a shell or other application.




回答2:


http://www.masswerk.at/termlib/ looks interesting as a base.




回答3:


http://sourceforge.net/projects/jsterminal

but you'd have to write your own commands to connect with the host




回答4:


Shell in a box could be used also with a small Asus EEE-PC:

http://code.google.com/p/shellinabox/

It works great also for virtual machines in a cloud.




回答5:


So far JSDom Shell is the only thing I have found, which seems relatively barebones but practical. If there are any other more substantial options, feel free to share!



来源:https://stackoverflow.com/questions/294945/javascript-or-jsphp-terminal-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!