I'm trying to run SSH in python through os.system() which is being invoked by PHP. It works fine when I run it through the CLI version of PHP but it is not running through lamp.
Following is my php code:
<?php $x=shell_exec('python test.py'); ?>
and below is the python code (test.py) which is being invoked by the PHP code:
import os
os.system("ssh [email protected]")
I also tried using touch utility through exec() in PHP, the same thing happens.