dongmiao520892 2015-02-04 19:21
浏览 78

Laravel发送SSH命令

I'm working on a Laravel app and would need to send a SSH command to a remote server from my webapp. I know envoy can be used to this but this is not a good solution for me as envoy allows only to send a predefined command to a predefined list of servers.

In my case, I need to send a SSH command to a remote server when clicking on a button in my webapp to the IP address of a remote server that can be found on a label in the webapp.

Any suggestions?

  • 写回答

1条回答

  • douxie1957 2015-02-04 20:42
    关注

    I think it is always a good idea to stick to the language standard library if it provides the functionality you need. Please have a look at: http://php.net/manual/en/function.ssh2-exec.php

    评论

报告相同问题?

悬赏问题

  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件