javascript 使用 JS、HTML5 和 PHP 的 SSH 终端

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15704626/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 01:47:48  来源:igfitidea点击:

SSH terminal using JS, HTML5 and PHP

phpjavascripthtmlsshterminal

提问by Crystark

I'm looking for a solution like GateOnethat i could install on a server which support PHP for which i have no ssh connection. It also support Python but i can't execute anything on it without an actual SSH access. That mean it would have to work just by dropping it into a folder.

我正在寻找像GateOne这样的解决方案,我可以将其安装在支持 PHP 的服务器上,但我没有 ssh 连接。它还支持 Python,但如果没有实际的 SSH 访问权限,我无法在其上执行任何操作。这意味着只需将其放入文件夹即可工作。

I've seen JavaScript (or JS+PHP) Terminal Clientbut the solutions seem outdated.

我见过JavaScript(或 JS+PHP)终端客户端,但解决方案似乎已经过时。

For example i'd like to be able to execute a simple ln -s ./dir1 ./dir2to create a symbolic link.

例如,我希望能够执行一个简单的ln -s ./dir1 ./dir2来创建符号链接。

回答by thejh

I think you don't actually want SSH. Maybe you should try a simple php shell like http://phpshell.sourceforge.net/if you really just want to run non-interactive commands?

我认为您实际上并不想要 SSH。如果您真的只想运行非交互式命令,也许您应该尝试像http://phpshell.sourceforge.net/这样的简单 php shell ?

回答by Crystark

I finally found out that codiadwhich i now use has a terminal way better than phpshell. I went for that solution. It allows to manage web projects too but i think it's the most advanced terminal currently available that doesn't need any installation through command line.

我终于发现我现在使用的codiad有一个比 phpshell 更好的终端方式。我去了那个解决方案。它也允许管理 Web 项目,但我认为它是目前可用的最先进的终端,不需要通过命令行进行任何安装。

回答by Roke

I wrote a php ssh client that use php and xterm, you can take the source code on the github page https://github.com/roke22/PHP-SSH2-Web-Client

我写了一个使用php和xterm的php ssh客户端,你可以在github页面上获取源代码https://github.com/roke22/PHP-SSH2-Web-Client

Please send some feedback too.

也请发送一些反馈。

I hope that help you.

我希望对你有帮助。