I am currenty SCping using the command line, where i am asked for the
password in order to run the command.
Now I wish to run the SCP command from within a php script.
I'd rather enter the password each time in a form rather than store it
within the script itself.
How can I handle the password request? i.e., pass the password to the
remote system when it asks for it.
PHP has a module to handle SSH2 related activities. Following link
explains about sending data using scp; along with a small example. On the
same page, hyperlinks with details of other ssh2 functions are provided too.
http://in2.php.net/manual/en/function.ssh2-scp-send.php
Raghu