K
K
Kostya007232016-03-26 22:35:31
linux
Kostya00723, 2016-03-26 22:35:31

How to send a shell command to another server using PHP?

I have a server running a PHP script script
, I need this script to send a direct command to the console of another machine (Like an SSH terminal)
and return the response it reported.
How to implement?
What could be the difficulties?
Let me read something on this topic?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor Taran, 2016-03-26
@shambler81

https://www.google.ru/url?sa=t&rct=j&q=&esrc=s&sou...

E
Egor, 2016-03-26
@egormmm

On the 1st server - create a request to the 2nd server (wget, CURL).
And on the 2nd, in the method that receives the request, execute exec ().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question