I'd like to issue an scp command to copy some remote files from one server to another on a regular cron basis.
scp runs very fast from my console, but how do I put it into a PHP script when it asks for a password??
[root@35235 test]# scp -r myuser@host.com:www/1 test
myuser@host.com's password:
I could say exec('scp -r myuser@host.com:www/1 test').
How do then manage the password challenge via PHP?