【问题标题】:Need ssh-agent running under Apache PHP script需要在 Apache PHP 脚本下运行 ssh-agent
【发布时间】:2012-02-19 13:38:36
【问题描述】:

我想在 apache 下执行的 PHP scipt 中运行 capistrano 命令。我需要在发出命令时启动 SSH-Agent。 Apache 在具有 ssh-agent 设置的 www-data 用户下运行,但在 PHP 和 Apache 下运行任何命令时 ssh-agent 不可用

有没有办法让 apache 用户启动 ssh-agent 以便它可用?还有其他解决方法吗?

【问题讨论】:

    标签: php apache ssh-agent


    【解决方案1】:

    在启动httpd的脚本中启动ssh-agent。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-20
      • 1970-01-01
      • 2021-11-27
      • 1970-01-01
      • 1970-01-01
      • 2012-02-18
      • 1970-01-01
      • 2011-02-27
      相关资源
      最近更新 更多