当前位置: 动力学知识库 > 问答 > 编程问答 >

ssh plus svn through php

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: