问题
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