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

Re: Bug in tortoiseplink.exe if svnserve on the serverside uses a --root?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-07-23 20:27:55 CEST

Benjamin Podszun wrote:
> Hi there.
>
> After spending a lot of time trying to lock down a specific ssh key to a
> filesystem root I guess that there's a problem with tortoiseplink.exe.
>
> What I expected:
> I wanted to use Tortoise to access a repository on a server of mine,
> limited to a root directory both for security reasons and because I'm
> lazy and didn't want to type /a/full/path/to/a/repo.
>
> Where I started:
> I had a working putty session that defined
> - the address
> - the username
> - the keyfile
> for a given name. "Trac", in my case. Looking at
> svn+ssh://Trac/home/admin/darklajid/svn/tis/mailroom worked and showed
> me the up-to-now empty folders trunk, tags, branches (the repository is
> shiny and new).
>
> What failed:
> When I chanced the authorized_keys2 from
>
> no-agent-forwarding,no-X11-forwarding,command="/usr/bin/svnserve -t
> --tunnel-user=bpodszun" ssh-rsa AAAAB...
>
> to
>
> no-agent-forwarding,no-X11-forwarding,command="/usr/bin/svnserve -r
> /home/admin/darklajid/svn/tis -t --tunnel-user=bpodszun" ssh-rsa AAAAB...
>
> I couldn't browse svn+ssh://Trac/mailroom with the Repo-Browser:
> Error * No repository found in 'svn+ssh://Trac/mailroom'
>
> What I tried:
>
> After asking for help in irc://irc.freenode.org/#svn I started cygwin
> and tried lots of combinations with the commandline client.
>
> Working SVN_SSH wrapper scripts:
>
> ssh -i keyfile -l username $* <-- Cygwin SSH
> path/to/plink -i keyfile -l username $* <-- Plink
> path/to/plink -load $* <-- PLink w/ session definition
>
> I couldn't get it to work with tortoise, though. I tried SVN_SSH wrapper
> as:
>
> path/to/tortoiseplink -i keyfile -l username $*
> path/to/tortoiseplink -load $*
>
> My conclusion:
>
> Since the repository is accessible from the commandline and from your
> GUI as long as the key is not restricted to a svnserve --root I doubt
> that it's a configuration problem. I can access the repository just fine
> even with that option set (using the wrapper above), so there's no
> problem with my setup of the server, the putty session, the permissions
> etc.
> I therefor blame the tortoisesvn version of plink and guess I discovered
> a bug?
>
> The software versions used:
>
> SVN on the Client:
>
> TortoiseSVN 1.4.4 Build 9706 - 32 Bit, according to the "Check for
> updates" the latest version right now.
[snip]
>
> Please tell me if there's a problem with your version of plink or if I'm
> missing something obvious. I'm currently not subscribed to this list, so
> it would be nice if you could CC me on any answer.
>
> Thanks for this nice software and in advance for your time and answer,
> Ben

TortoisePlink is the plain plink, changed slightly so it doesn't show
the command window. Everything else is identical.
So I doubt that it's really TortoisePlink to blame here. Maybe the
version of plink that we used to create TortoisePlink?
The plink version of 1.4.4 is 0.57.
The plink version we have on trunk (in the nightly builds) is 0.59.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Jul 23 20:26:56 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.