问题描述:

I am trying to run the following command through php:

exec("svn export svn+ssh://[email protected]/var/svn/XXXX $OUTPUT/$value2");

But it asks for my password each time. I have a key stored on the svn server, how can I pass pass my private key to this script to use?

网友答案:

is the key which is stored in the server under the user whom is running that script?

IE normally when you log in you're logged in as "bob". However when PHP is executed, it's executed as WWW; make sure the key is stored for the proper user.

相关阅读:
Top