开发者

ssh plus svn through php

开发者 https://www.devze.com 2023-04-03 02:14 出处:网络
I am trying to run the following command through php: exec(\"svn export svn+ssh://svn@XXXXXX/var/svn/XXXX $OUTPUT/$value2\");

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 c开发者_如何学Goan 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号