Re: [Rd] Using SVN + SSH on windows

From: Henrik Bengtsson <hb_at_stat.berkeley.edu>
Date: Sat, 27 Mar 2010 19:56:12 +0100

BTW, it may indeed be that you have to wait (more than 2-3 hours) before things are updated on the r-forge servers, cf.

Thread 'FYI: New members must wait hours to commit' on 2009-12-03 https://r-forge.r-project.org/forum/forum.php?thread_id=1966&forum_id=78

/Henrik

On Sat, Mar 27, 2010 at 7:30 PM, Henrik Bengtsson <hb_at_stat.berkeley.edu> wrote:

> 2010/3/27 Christophe Genolini <cgenolin_at_u-paris10.fr>:

>> Henrik Bengtsson a écrit :
>>>
>>> 2010/3/27 hb <hb_at_stat.berkeley.edu>:
>>>
>>>>
>>>> On Sat, Mar 27, 2010 at 3:12 PM, Christophe Genolini <cgenolin_at_u-paris10.fr> wrote:
>>>>
>>>>>
>>>>> Hi the list,
>>>>> I try to use R-Forge for developping a projet. I am using tortoise SVN (last
>>>>> version) but I do not manage to Commit. I read the R-Forge user Manual and
>>>>> some post on  but I do not manage to find the solution. Here is what I did:
>>>>>
>>>>> 1/ I download 'puttygen.exe'. I generate a key (256 bits).
>>>>> 2/ I save the private key in a file 'private.ppk' on my computer.
>>>>> 3/ I copy-paste the public key on sourceforge
>>>>> ssh-rsa
>>>>> AAAAB3NzaC1yc2EAAAABJQAAACEAobwycGGZrMZ39i7Vtrdk3ahN1hVw/tPoiShJGk1xjRs=
>>>>> rsa-key-20100327
>>>>> 4/ I wait two hours.
>>>>> 5/ On my computer, I run 'pageant.exe'.
>>>>> 6/ I click on 'Add key'. I load the file 'private.ppk'
>>>>> 7/ I close 'pageant.exe' (still actif in the task bar).
>>>>> 8/ I open explorer. I create a directory that is suppose to be the local
>>>>> directoy for the projet.
>>>>> 9/ I right-click on the directory. I open 'SVN checkout'
>>>>> 10/ In 'URL of  repository:', I write :
>>>>> 'svn+ssh://christophe@svn.r-forge.r-project.org/svnroot/kml3d'
>>>>> (christophe is my accoung, kml3d is the project)
>>>>> And...
>>>>>
>>>>> ...nothing happen. No bug, not warning, nothing.
>>>>>
>>>>> I try several things: if I do
>>>>> 'svn://christophe@svn.r-forge.r-project.org/svnroot/kml3d', I do manage to
>>>>> download the project. But then, I do not manage to upload some modification.
>>>>>
>>>>
>>>> All looks ok, but I think you are using the wrong protocol. It should be 'svn+ssh' for *commits*, i.e.
>>>>
>>>> svn+ssh://christophe@svn.r-forge.r-project.org/svnroot/kml3d
>>>>
>>>> which *is* shown at http://r-forge.r-project.org/scm/?group_id=727
>>>>
>>>
>>>
>>

>> Now, in addition, I configure putty as Uwe advice me. I follow the tutorial http://www.mono-project.com/Putty_and_TortoiseSvn
>>>
>>> Sorry, I missed that you've tried that (I scrolled past it on my small screen).
>>>
>>> - When you generated a key in PUTTYgen, did you enter a passphrase?  I
>>> think you have to leave that blank.
>>>
>>> - Make sure not to have any newlines/spaces in the key, when you paste
>>> it, that is, you should have:
>>>
>>> Line 1: ssh-rsa
>>> Line 2: <long key>
>>>
>>

>> On two line ? On R-forge, they say "/Make sure there are no line breaks except between keys."/
>
> My bad/you're right.  I went back an checked an it's all on one line;
> I've got three keys on three lines.
>
>>>
>>> You can have multiple entries as the above.
>>>
>>> - You need to checkout with the svn+ssh URL, because that it is what
>>> TortoiseSVN will use for commits (unless you do "relocate").  If you
>>> can checkout using this protocol, you should be able to commit.  Thus,
>>> focus your troubleshooting on checking out.
>>>
>>> - In the "Default Settings" PuTTY Configurations, make sure "Attempt
>>> authentication using Pageant" is checked under the Connection -> SSH
>>> -> Auth panel.
>>>
>>

>> I did
>>>
>>> - Make sure Pageant lists the key in its dialog.
>>>
>>>
>>

>> It is.
>>
>>> Does it work?
>>>
>>>
>>

>> No. In "putty", I get :
>> "login as: christophe"
>>

>> Then a pop up say : "Assertion failed!
>> Program:...\pageant.exe
>> File: ..\sshrsa.c
>> Line:793
>> ..."
>
> Hmm... I don't get that.  It looks wrong.  Google it and you find:
>
> <quote>
> 10.7 ‘Internal error’, ‘Internal fault’, ‘Assertion failed’
>
> Any error beginning with the word ‘Internal’ should never occur. If it
> does, there is a bug in PuTTY by definition; please see appendix B and
> report it to us.
>
> Similarly, any error message starting with ‘Assertion failed’ is a bug
> in PuTTY. Please report it to us, and include the exact text from the
> error message box.
> </quote>
>
> URL: http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter10.html#errors-internal
> Also: http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/sshcrcda-assertion-failed.html
>
> What's the PuTTY version do you have?  I have PuTTY v0.60 and it works.
>
> Try to generate a new pair of ssh keys and retry.
>
> If you want to, you can send me a pair of private/public keys that you
> generate and I can try it on my r-forge account.
>
> /Henrik
>
>>

>> Then I click "ignore"
>>

>> On putty again :
>>

>> "Authenticating with public key "rsa-key-20100327" from agent
>> Access denied
>> christophe_at_kml3d.r-forge.r-project.org's password:
>> Linux xmrforge2 2.6.18-xen #1 SMP Fri May 18 16:01:42 BST 2007 x86_64
>>

>> The programs included with the Debian GNU/Linux system are free software;
>> the exact distribution terms for each program are described in the
>> individual files in /usr/share/doc/*/copyright.
>>

>> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
>> permitted by applicable law.
>> Last login: Sat Mar 27 17:56:55 2010 from def92-4-82-225-59-146.fbx.proxad.net
>> This is a restricted account.
>> You cannot execute anything here.
>> Goodbye."
>>
>>
>>
>>> /Henrik
>>>
>>>
>>>>
>>>> /Henrik
>>>>
>>>> PS. Don't think you need plink, but I might be wrong.
>>>>
>>>>
>>>>>
>>>>> I also see on some tutorial that we might need putty.exe or plink.exe. I
>>>>> download them, but R-Forge user Manual do not mention them.
>>>>>
>>>>> Any idea of what goes wrong ?
>>>>>
>>>>> Thanks
>>>>> Christophe
>>>>>
>>>>> ______________________________________________
>>>>> R-devel_at_r-project.org mailing list
>>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 27 Mar 2010 - 19:05:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 27 Mar 2010 - 19:11:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive