在SourceForge.net上使用TortoiseCVS上传代码

可能看到本文章的很少有人没有从SourceForge.net下载过代码或者文件,但因为SourceForge.net对上传的安全性考虑的非常周到,执行的比较严格,所以在SourceForge.net上使用TortoiseCVS上传代码对我来说一直是个很难的事情,

昨天终于在david.turning的帮助下,成功的使用SourceForge.net和TortoiseCVS建立了smart在sourceforge的代码

http://blog.csdn.net/hongbo781202/archive/2006/07/12/909030.aspx),下面把具体的过程写下来:

1)下载软件

CVS客户端软件: http://sourceforge.net/projects/tortoisecvs/ 并安装。

下载SSH客户端的puttygen.exe和pageant.exe http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

2)产生ssh的public key和private key

具体请参考https://sourceforge.net/docman/display_doc.php?docid=761&group_id=1#keygen_putty

其实要看的部分就只有下面这块,我就不翻译了:

To generate a SSH key using PuTTY:

  1. Execute the PUTTYGEN.EXE program.
  2. Select the desired key type, "SSH2 DSA", within the "Parameters" section.
  3. Click on the "Generate" button.
  4. Follow the instruction to move the mouse over the blank area of the program in order to create random data used by PUTTYGEN to generate secure keys. Key generation will occur once PUTTYGEN has collected sufficient random data.
  5. Enter [email protected] or [email protected] for the key comment, depending on what host the key is for, replacing USERNAME with your SourceForge.net username.
  6. Enter the desired passphrase in the "Key passphrase" and "Confirm passphrase" fields. If the key will be used for automation of operations (i.e. as part of a script), you may choose to omit this step from the key generation process.
  7. Click on the "Save private key" button. Use the resulting dialog to save your private key data for future use. You may use a filename such as "SourceForge-Shell.ppk" or "SourceForge-CF.ppk". The .ppk extension is used for PuTTY Private Key files.
  8. Go to the SSH key posting page on the SourceForge.net site. Copy your public key data from the "Public key for pasting into OpenSSH authorized_keys2 file" section of the PuTTY Key Generator, and paste the key data to the provided form on the SourceForge.net site. Click on the "Update" button to complete the posting process.
  9. Exit the PuTTY Key Generator (PUTTYGEN).
  10. Key data sync to hosts from the SourceForge.net site occurs on regular intervals. Your key data will be synchronized to the designated servers (either shell and CVS, or the Compile Farm) after a short delay.

要注意的是,一定要按照上面列的先后顺序。第8步是把public key copy到 https://sourceforge.net/account/ 而private key是自己保存的。(了解信息安全的应该都明白)

3)运行pageant.exe

选择"Add Key",然后选择你在本地的私钥文件,输入你为私钥设置的密码。 先不要退出该程序。

4) 如果你想 新建module到SF.net

先 选中你在本地的源代码文件夹,然后点右键选择"CVS=>创建新模块"。

在弹出的frame中,protocal选择 ssh或者ext;server选择 agileflow.cvs.sourceforge.net;port不选;

库目录填/cvsroot/agileflow; username填 hongsoft;module 可以填你自己取的名字比如 smart_forleave

点确定,输入密码,就新建了module。

5) 后面的提交/修改/删除就和一般的CVS的使用是一样的了。

你可能感兴趣的:(.net,PHP,ssh,ext,cvs)