dsj2014 2013-04-28 06:18
浏览 29
已采纳

基于Web的SSH应用程序是否实用?

I'm trying to make a simple web app to do SSH commands. The UI would use ajax to handle the commands and return the response. I've been looking at the SSH2 functions of PHP to handle the SSH, but I can't figure out how to keep the connection open. I don't want to have to keep logging in for every new command, and it would be hard to keep track of what directory I was in. Is there a solution to this?

  • 写回答

1条回答 默认 最新

  • dongya8378 2013-04-28 06:48
    关注

    Due to its architecture PHP plugged into the web server can not have persistent handles to resources (such as files, sockets etc.). Consequently the answer is simple - you need some other server (not apache + PHP) to do the job. For example, IIS on Windows and Java servers let you have per-session storage and keep handles there.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?