在SourceForge.net上使用TortoiseCVS上傳代碼

來源:互聯網
上載者:User

可能看到本文章的很少有人沒有從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 USERNAME@shell.sourceforge.net or USERNAME@cf.sourceforge.net 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的使用是一樣的了。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.