I looked in the archieves and found a similar question, but I need to go one step further.
I'm using the same command:
exec ("ssh -l root 192.168.0.1 cat myfile",$array);
When I execute this command in a shell I'm prompted for the password. How do I send the above command and the password in a php script? Is that even possible?
Any help would be appreciated. Thank you for your time.