[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn+ssh/pubkey command=""/-r option

From: Zachery Hostens <lists_at_plastik.us>
Date: 2006-07-19 06:19:28 CEST

Ive searched the mailing list archive and see this question (or similar that of i should say,) but nothing of a real answer. the following is my question, quotes from the book, and multiple examples if it not working.

Question: why cant i do svnserve -t -r ... in the command="" section of a public key in .ssh/authorized_keys to set the virtual root? the book says i can, svnserve -d -r works, but not over svn+ssh.

YES i know svn:// is NOT the same as svn+ssh!!!
(please re-read the question if thats what you still think im asking is)

(as a side note: the svn:// and svn+ssh:// repo's im depicting are NOT the same, there simple what i have, and trying to do now)

I run svnserve -d as so: # svnserve -d -r /home/_svn
and it works: (you can try the following)
  # svn ls svn://plastik.us/

http://svnbook.red-bean.com/nightly/en/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sshtricks

explains using svn+ssh with ssh public keys and authorized_keys options for repo access.

now im trying to:
  have the repo under the user svn, and add public keys with command="" for all people with access to the repo.

what i have:
root@eclipse:/home/svn/.ssh# cat authorized_keys
command="/usr/local/bin/svnserve -t --tunnel-user=motion -r /home/svn",\
  no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty \
  ssh-rsa ...................... motion@dream.plastik.us

(note i have a Host/User entry for the host in my .ssh/config on dream)
what i get:
motion_at_dream ~ $ svn ls svn+ssh://dev.plastik.us/repo
svn: No repository found in 'svn+ssh://dev.plastik.us/repo'
motion_at_dream ~ $ svn ls svn+ssh://dev.plastik.us//home/svn/repo
readme
motion@dream ~ $

I have tried re-arranging the options... no luck.
i have tried using the svn wrapper script below and putting only --tunnel-user in the command="" (changing svnserve to svnwrapper...)... no luck

root@eclipse:~# cat /usr/local/bin/svnwrapper
#!/bin/sh
svnserve -r /home/svn -t $@

can ANYONE tell me why the book explains how to do something, and everyone i talk to on irc, as well as everywhere i see on the mailing list is people trying to do it, or people saying you /must/ use the full repo path?

if this is true can someone please edit the book so as to not have any other poor schmuck waste half a day, even talking to poeple on irc, trying to get this to work like i had to!

ps. please reply/reply-all as im not currently on the mailing list.

thnx in advance. (this deserves an entry in the faq!!!)

--
- Zachery Hostens
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 21 14:41:10 2006

This is an archived mail posted to the Subversion Users mailing list.