douyou1960 2012-08-23 16:39
浏览 67
已采纳

使用PHP从ScreenOS设备复制文件

I am making a script to backup configs for firewalls. One thing I want to do is scp files from ScreenOS devices, but I get a blank line from the CLI.

What I need to do in build this functionality into an already existing web interface, so I need to be able to run this command from within PHP.

I have looked at shell_exec, system, etc, but im haivng issues at the CLI level running the commands.

Any help is appreciated.

  • 写回答

1条回答 默认 最新

  • douxiao0400 2012-08-23 16:45
    关注

    I have been in the field for years. This is actually a bug with ScreenOS devices that are version 6.5 or less.

    There is an article, Gotcha - SCP Returns To Prompt, which documents this bug and walks you through configuring a separate install of OpenSSH which includes the SCP fix to support older ScreenOS devices.

    As for your web interface, once you get this bug fixed, map your shell_exec command to this new scp binary, and you will be all set.

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

报告相同问题?

悬赏问题

  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)