I was wondering if anyone knows a way to run a bash script that is already on a remote machine with php. The php box has access to exec. I had heard that you could use ssh, but I do know if it is installed on the webserver. I do need to pass an argument to the remote script.
To clarify:
- I have two servers, A & B
- A is a webhost with php exec, and no ssh client
- B is a amazon ec2 and I have full root access, but it doesn't have a webserver configured
Is there a way to call a bash script on server B with a php script on server A
EDIT: I confirmed I do not have ssh on the webserver.