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.
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_execcommand to this newscpbinary, and you will be all set.