svn+ssh with ssh public key not working
Added by ed schlitzer almost 13 years ago
hey all,
i´m running a redmine server & one svn server that servs repos via svn+ssh with ssh public keys.
here are some specs of the redmine server:
scientific linux 6.1
nginx+phusion passenger
subversion is installed
redmine version 1.3.0
passenger is running as user nginx, and all redmine files belong to user nginx:
the docroot is /home/nginx/redmine/redmine-current
ssh public key is installed on the subversion server as user nginx
the ssh private key is installed on the redmine server in /home/nginx/.ssh/id_dsa
okay, redmine itself is running without any problems, also svn+ssh is running without any problems.
so i can do ssh operations on the svn server from the redmine server:
[nginx@redmine1 tmp]$ svn co svn+ssh://nginx@svn1/nginxlb .
but for some reason the svn integration in redmine is not able to do svn ooperations.
i´m quite sure that redmine is not finding/providing the ssh key to the subversion server.
i found this in the nginx error logfiles:
svn: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: Network connection closed unexpectedly
so the question is, where is passenger looking for the ssh private key file, or is there a way to tell passenger where it should look for the key?
or am i missing something else?
thx
schlitzer
Replies (1)
RE: svn+ssh with ssh public key not working - Added by Homerun Homerun over 12 years ago
Greetings
I was having same issue with apache.
Finally solved problem after fight several days.
Please note that you have to get first svn+ssh working in shell with same UID that you run your web server like i apache.
Actual problem seem to be related to set SVN_SSH environment also to webserver to enable passwordless svn+ssh access.
In apache adding mod_env and set up SVN_SSH env correctly solved svn+ssh problem.
this seems to be related to how environments are handed.
in shell all worked smooth with SVN_SSH env setting but it needed mod_env setup to pass same SVN_SSH env than in shell also to apache and it's processes.
you use nginx see how env variables are set there and should start work similary like in apache.
I agree this is really tweaking style solution and redmine dev should make this work out of the box.
as now there is SVN_SSH env configured in apache , i really cannot run anyting else under same apache installation.
if some has managed to handle SVN_SSH env correctly in redmine configs please reply !
There is Defect #11318 , but redmine dev stated it's ssh problem.
i think it should be redmine setup/config problem , after svn+ssh works in shell.
Cheers