Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: svn+ssh - can browse, cannot checkout w/ Pageant

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Hide all messages in topic

All messages in topic

Re: svn+ssh - can browse, cannot checkout w/ Pageant

Author steveking
Full name Stefan K√ľng
Date 2009-01-24 02:14:37 PST
Message s.m. d. wrote:
> Ok, for some reson I seem to be unable to post from Google Groups
> interface (or the posting is somehow delayed) - so I'll try directly
> through Gmail ... Sorry if there turn up to the three same copies of
> this email :)

You got a notification from Google Groups telling you that it may take a
few minutes for your post to show up.

This list is moderated, which means I and a few others first have to
approve every post. And depending on the time of day, this can even take
hours - we're not online 24/7...

Stefan

--
       ___
  oo // \\ "De Chelonian Mobile"
 (_,\/ \_/ \ TortoiseSVN
   \ \_/_\_/> The coolest Interface to (Sub)Version Control
   /_/ \_\ http://tortoisesvn.net
Attachments

Re: svn+ssh - can browse, cannot checkout w/ Pageant

Author "s dot m dot d dot " <sssmmmddd at gmail dot com>
Full name "s dot m dot d dot " <sssmmmddd at gmail dot com>
Date 2009-01-24 02:10:50 PST
Message Ok, for some reson I seem to be unable to post from Google Groups
interface (or the posting is somehow delayed) - so I'll try directly
through Gmail ... Sorry if there turn up to the three same copies of
this email :)

Ok, I think I got it finally...

If I use:

> - Add to ~/.ssh/authorized_keys:
> command="svnserve -t --tunnel-user=usr2 -r /path/myhomefolder/s​vnrepos/myrepo" ssh-rsa XXX..xx= usr2@myrepo

Then I can do a repo-browser from TortoiseSVN using the adress:
>
> svn+ssh://schooluser​@sshserver.schoolser​ver.com/path/myhomef​older/svnrepos/myrep​o
>

but since I've specifically said in the above command that
.../svnrepos/myrepo is the svn root in this case - so all the adresses
in the svn+ssh protocol become related to this level !! Since it is
also the level we're browsing, TortoiseSVN apparently deletes the
extra path/myhomefolder/sv​nrepos/myrepo from the URL..

That means, that if I wanted to checkout in this case, I should have
just tried to check out adress
svn+ssh://schooluser​@sshserver.schoolser​ver.com/ directly, in order to
access .../svnrepos/myrepo - even though for the full path, the server
complained with "doesn't exist" !!

What I did now, is simply have this line in ~/.ssh/authorized_keys:

> command="svnserve -t --tunnel-user=usr2 -r /path/myhomefolder/svnrepos" ssh-rsa XXX..xx= usr2@myrepo

Then, I can checkout myrepo through TortoiseSVN adress:

> svn+ssh://schooluser​@sshserver.schoolser​ver.com/myrepo

(basically, since now /path/myhomefolder/svnrepos is the root in this
case, it can be left out - and all other adresses, like that of
myrepo, are expressed relative to it in the URL)..

Boy, this took a while to understand :) Thanks !

Re: svn+ssh - can browse, cannot checkout w/ Pageant

Author smd <sssmmmddd at gmail dot com>
Full name smd <sssmmmddd at gmail dot com>
Date 2009-01-24 02:04:21 PST
Message Ok, I think I got it finally...

If I use:

> - Add to ~/.ssh/authorized_keys:
> command="svnserve -t --tunnel-user=usr2 -r /path/myhomefolder/s​vnrepos/myrepo" ssh-rsa XXX..xx= usr2@myrepo

Then I can do a repo-browser from TortoiseSVN using the adress:
>
> svn+ssh://schooluser​@sshserver.schoolser​ver.com/path/myhomef​older/svnrepos/myrep​o
>

but since I've specifically said in the above command that .../
svnrepos/myrepo is the svn root in this case - so all the adresses in
the svn+ssh protocol become related to this level !! Since it is also
the level we're browsing, TortoiseSVN apparently deletes the extra
path/myhomefolder/sv​nrepos/myrepo from the URL..

That means, that if I wanted to checkout in this case, I should have
just tried to check out adress svn+ssh://
schooluser@sshserver​.schoolserver.com/ directly, in order to
access .../svnrepos/myrepo - even though for the full path, the server
complained with "doesn't exist" !!

What I did now, is simply have this line in ~/.ssh/authorized_keys:

> command="svnserve -t --tunnel-user=usr2 -r /path/myhomefolder/svnrepos" ssh-rsa XXX..xx= usr2@myrepo

Then, I can checkout myrepo through TortoiseSVN adress:

> svn+ssh://schooluser​@sshserver.schoolser​ver.com/myrepo

(basically, since now /path/myhomefolder/svnrepos is the root in this
case, it can be left out - and all other adresses, like that of
myrepo, are expressed relative to it in the URL)..

Boy, this took a while to understand :) Thanks !

Re: svn+ssh - can browse, cannot checkout w/ Pageant

Author smd <sssmmmddd at gmail dot com>
Full name smd <sssmmmddd at gmail dot com>
Date 2009-01-24 02:01:22 PST
Message Ok, I think I got it finally...

If I use:

> - Add to ~/.ssh/authorized_keys:
> command="svnserve -t --tunnel-user=usr2 -r /path/myhomefolder/s​vnrepos/myrepo" ssh-rsa XXX..xx= usr2@myrepo

Then I can do a repo-browser from TortoiseSVN using the adress:
>
> svn+ssh://schooluser​@sshserver.schoolser​ver.com/path/myhomef​older/svnrepos/myrep​o
>

but since I've specifically said in the above command that .../
svnrepos/myrepo is the svn root in this case - so all the adresses in
the svn+ssh protocol become related to this level !! Since it is also
the level we're browsing, TortoiseSVN apparently deletes the extra
path/myhomefolder/sv​nrepos/myrepo from the URL..

That means, that if I wanted to checkout in this case, I should have
just tried to check out adress svn+ssh://
schooluser@sshserver​.schoolserver.com/ directly, in order to
access .../svnrepos/myrepo - even though for the full path, the server
complained with "doesn't exist" !!

What I did now, is simply have this line in ~/.ssh/authorized_keys:

> command="svnserve -t --tunnel-user=usr2 -r /path/myhomefolder/svnrepos" ssh-rsa XXX..xx= usr2@myrepo

Then, I can checkout myrepo through TortoiseSVN adress:

> svn+ssh://schooluser​@sshserver.schoolser​ver.com/myrepo

(basically, since now /path/myhomefolder/svnrepos is the root in this
case, it can be left out - and all other adresses, like that of
myrepo, are expressed relative to it in the URL)..

Boy, this took a while to understand :) Thanks !

svn+ssh - can browse, cannot checkout w/ Pageant

Author smd <sssmmmddd at gmail dot com>
Full name smd <sssmmmddd at gmail dot com>
Date 2009-01-23 23:17:34 PST
Message Hi all,

I'm trying to setup an SVN repository on my school server (Linux), on
which I don't have much control (like over /etc/sshd_config), apart
from my home directory. I login there through

ssh schooluser@sshserver​.schoolserver.com

I'd like to allow several users use TortoiseSVN to connect to the
repositories there. Basically, I managed to get the repo-browser to
list contents, but it cannot check-out.

I have tried to follow:
http://svn.collab.ne​t/repos/svn/trunk/no​tes/ssh-tricks
Re: Cannot check out/update but can browse repo and import with SSH
http://svn.haxx.se/t​svnusers/archive-200​7-01/0135.shtml
http://www.nabble.co​m/Questions-Re.-Appe​ndix-G.-Securing-Svn​serve-using-SSH-td18​490138.html
Ditching the Password Prompts in TortoiseSVN
http://allyourtech.c​om/content/articles/​24_12_2005_ditching_​the_password_prompts​_in_tortoisesvn.php
http://wiki.wsmoak.n​et/cgi-bin/wiki.pl?S​ubversion/Configurat​ion
SVN+SSH+public key authentication on Windows Box as server -
http://tortoisesvn.net/node/156

I've tried to:
- Set up an svn repo, at /path/myhomefolder/s​vnrepos/myrepo, and check
in a single file
- Generate openssh keys for the supposedly new user usr2
- Add to ~/.ssh/authorized_keys:
command="svnserve -t --tunnel-user=usr2 -r /path/myhomefolder/svnrepos/
myrepo" ssh-rsa XXX..xx= usr2@myrepo
- Convert openssh private key to putty key (.ppk)
- On XP machine - run Pageant, load the ppk file.

Then I can do a repo-browser from TortoiseSVN using the adress:

svn+ssh://schooluser​@sshserver.schoolser​ver.com/path/myhomef​older/
svnrepos/myrepo

Even though it is the usr2 key that is loaded (as it should). However,
as soon as the contents are listed, this full adress dissapears from
the TortoiseSVN browser adress bar, and only svn+ssh://
schooluser@sshserver​.schoolserver.com remains ?! Hence, when I try to
do a checkout by rightclicking the folder in the repo-browser window,
it puts in the 'svn+ssh://schooluse​r@sshserver.schoolse​rver.com' as a
repository adress to check out from, and there is obviously nothing
there..

If I try to go directly via SVN Checkout - and enter the full svn
+ssh://schooluser@ss​hserver.schoolserver​.com/path/myhomefold​er/
svnrepos/myrepo there, it ends with error:

> URL 'svn+ssh://schooluse​r@sshserver.schoolse​rver.com/path/myhome​folder/svnrepos/myre​po' doesn't exist

I've tried to follow this suggestion in Re: Cannot check out/update
but can browse repo and import with SSH - http://svn.haxx.se/t​svnusers/archive-200​7-01/0135.shtml
and run 'tortoiseplink schooluser@sshserver​.schoolserver.com "svnserve
-t"' - but the program exits without anything happening. If I run
'putty schooluser@sshserver​.schoolserver.com' instead, I get:

> Using username "schooluser".
> Authenticating with public key "usr2@myrepo" from agent
> ( success ( 2 2 ( ) ( edit-pipeline svndiff1 absent-entries commit-revprops depth log-revprops partial-replay ) ) )

which I guess says that svnserve was succesfully started on the server
side. But still - cannot checkout...

Does anyone know why this may be happening, and how to fix/
troubleshoot it?

Thanks... Cheers!
Messages per page: