0

I am trying to run the following command through php:

exec("svn export svn+ssh://svn@XXXXXX/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?

1
  • Can't you use SSH-aliases? Example from ~/.ssh/config Host 17915\n Hostname xxx.xxx.xxx.xxx\n User login_username\n Port 22 Commented Sep 7, 2011 at 18:08

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.