To specify the background in my environment:
I have 3 cars A, B and C
A = web server running on php website which basically acts as an interface for B and C
B = Linux Ubuntu, I have root access, SSH and everything I need to work on the machine through an SSH client (I have a .ppk private key file for this server)
C = MySQL MySql server running on Linux
I can successfully execute queries from A (php) to C (Mysql) and return the results. But now I'm trying to execute linux commands on B from A.
Eg.
I have a script that runs on B and would like to execute a command from A (php) to show the status of the script.
This is easy to do at the command line.
But I want to show the status of this script on a website hosting on server A.
Even just check the running time of server B on server A.
It is anyway. I googled forever, as it seems, but I donโt get anywhere, Im not too phased if the connection is secure or not, because it is a closed network without external access to this network.
Any recommendations would be highly appreciated.
thanks
source share