Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
TC_Hessen
New Contributor

Reading config of fgt with scp/php

Hi, I tried to fetch a config-file of our Fortigates using the php command ssh2_scp_recv, but it does not work. The connection is established using the ssh2-class and works without and problem. Both, password and key-authentication works, opening a virtual shell also works. But a simple csp failes with PHP Warning: ssh2_scp_recv(): Unable to receive remote file in[...] Using scp on the linux shell is ok, but I do not like a use a shell-excecute in such a script. Any hints? I am using php 5.4.4, libssh2 1.4.2 on debian wheezy/stable.
best regards, TC
best regards, TC
10 REPLIES 10
corvdl

Did you finally get this working ?

I have the exact same problem as you describe.

Labels
Top Kudoed Authors