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.

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

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料