Apache2, Subversion & SSH

Programming, for all ages and all languages.
Post Reply
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Apache2, Subversion & SSH

Post by Solar »

I would like to configure an Apache2 server in such a way that it requires a valid SSH public key to be provided as a means of identification.

Background, I'm setting up a development server including Subversion repository, under severe security restrictions. I know I could use [tt]svnserve[/tt] and svn+ssh://example.com/svn... to tunnel SVN through SSH, but for various reasons (not the least of which being the number of running server processes) I would much prefer to use Apache and mod_dav_svn (i.e., https://example.com/svn...).

Users of this server will be required to use SSH pubkey authentication for their login. Now, I would like to use the same SSH pubkey for authentication against Apache / SVN. The problem is, I am not very knowledgeable at either Apache modules or PAM modules, so I could use some advise...
Every good solution is obvious once you've found it.
Post Reply