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

No repository found when using ssh tunnel as root

From: Bill Wohler <wohler_at_newt.com>
Date: 2006-02-10 23:22:48 CET

Bug or user error?

    $ svn ls svn+ssh://ssh.domain.com/path
    [expected output]
    $ sudo svn ls svn+ssh://ssh.domain.com/path
    svn: No repository found in 'svn+ssh://ssh.domain.com/path'

Note that ssh.domain.com resolves to, and I have .ssh/config
entries that say:

    Host remotehost.domain.com
        RemoteForward 2222 localhost:22
    Host ssh*.domain.com
        Port 2222

When I log into remotehost from the host with the repository, an ssh
tunnel over port 2222 so I can access my repository with ssh.domain.com.

What is different when I access this host as root than as a normal user?
It seems as if Subversion is being smart and saying to itself, aha!
ssh.domain.com is the local host, so I'll substitute a file: schema.

If I'm in a position to switch to a "real" hostname for the repository,
thereby not using the ssh tunnel, I can access it as root.

Any thoughts? Any debugging hints? It would be nice if there were an svn
-t flag which prints out what it is doing and how it is calling ssh. Is
there some way to call ssh -v?

Couldn't find anything on Google, the book, or the FAQ...

Bill Wohler <wohler_at_newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Feb 11 12:57:56 2006

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