Cannot connect to a remote device using php script

Comments, suggestions, compliments, etc
Post Reply
KostR
Posts: 1
Joined: 2014/06/23 01:20:20

Cannot connect to a remote device using php script

Post by KostR » 2014/06/23 01:27:25

Hi to all!!!

I got the following problem: I have a php script on a server running CentOS. The server is located in a local VPN, also I have got a router on the same VPN.
If I try and connect to the router vie the server using console and ssh protocol, it works fine. And when I define the same commands in a php script it won't even connect to the router. The router log doesn't even show an attempt for the connection so my guess that there is something preventing it on the server.

I am also using a specific library which is an API for the the routerOS which I am trying to connect too, and the result is the same (the API is using the same ssh protocol).

User avatar
vonskippy
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Re: Cannot connect to a remote device using php script

Post by vonskippy » 2014/06/23 04:33:07

Such a long post to have almost zero details.

Most people here don't like to play 20 questions.
For the 2.5^15th time :: Better Details = Better Answers

Post Reply