Sunday, October 21, 2012

sourceforge ssh+svn login

 

see here:


https://sourceforge.net/apps/trac/sourceforge/wiki/SSH%20keys

1.downoad putty and uncompress it.


find here,download it.

2.PuttyKey generator like it:



  • run puttygen

  • select the Load button

  • browse to and select your private RSA or DSA ssh key

  • enter your password when prompted

  • read the presented dialogue

  • click the Save private key button

  • enter a filename for your new .ppk file when prompted

  • press Save

  • image

    not type passphrase,if that,your need input passphrase in follow tool.

    3.update ssh-dss here:


    https://sourceforge.net/account/ssh

    4.open putty



  • Create session called liandl@shell.sourceforge.net

  • open putty.exe

  • under Host Name (or IP address), enter liandl@shell.sourceforge.net

  • under Saved Sessions, enter "liandl@shell.sourceforge.net"

  • click the Save button

  • image

  • Select .ppk file for authentication

  • in the Category tree, select Connection->SSH->Auth

  • in the field under Authentication Parameters, click the Browse... button

  • browse to and select your .ppk file

  • image

  • Save your session information

  • in the Category tree, select Session

  • under Load, save or delete a stored session, select liandl@shell.sourceforge.net

  • click the Save button

  • image
    Run the pageant.exe(i skip this and bellow step)


  • double-click on pageant.exe

  • you should now see a computer with a black hat in the tray


  • Add your .ppk to the ageant


  • right-click on the computer with the black hat in your taskbar

  • select Add Key from the context menu

  • browse to your recently-created .ppk file and select it

  • click Open

  • enter your password when prompted

  • verify that your key has been added by double-clicking on the computer with the black hat

  • image

    5.Install in cmd:


    (i skip this and bellow step)

     

    d:\work\svn>ssh -i D:\doc\sync\SkyDrive\lian\setting\sf.net\liandl.ppk liandl@sh ell.sourceforge.net (this step can skip)

    D:\doc\sync\SkyDrive\lian\soft\puttyEng>plink -i "D:\doc\sync\SkyDrive\lian\setting\sf.net\liandl.ppk" liandl@shell.sourceforge.net

    D:\doc\sync\SkyDrive\lian\setting\sf.net\liandl.ppk is puttgen’s save private key click save path.

    6.Setting TortoisePlink in TortoiseSVN


    (i skip this and bellow step)

    This is the part we've all been waiting for. You need to tell TortoiseSVN to use TortoisePlink to handle its SSH traffic. To do this see the following steps:


  • right-click on an explorer window somewhere

  • hover over TortoiseSVN in the context menu

  • select Settings from the sub-menu

  • select Network from the list on the left

  • under the SSH box in the right side, click the Browse... button

  • browse to and select TortoisePlink.exe (mine is in c:\Program Files\TortoiseSVN\bin\TortoisePlink.exe)

  • click Open

  • click Apply

  • image

    7. ok


    Now Sourceforge’s ssh+svn is worked norma.

    8. more


    you can do it as auto start in batch
    C:\PuTTY\pageant.exe D:\doc\sync\SkyDrive\lian\setting\sf.net\liandl.ppk


    9. url


    http://www.mono-project.com/Putty_and_TortoiseSVN

No comments: