大部分開源網(wǎng)站對開發(fā)者的cvs訪問采用extssh,簡單過程如下:
1 生成公私匙(public/private key),通過putty或者cygwin的ssh-kegen生成。
步驟 http://alexandria.wiki.sourceforge.net/SSH+Key+Generation
Putty http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
cygwin http://www.cygwin.com/
2 將public key 粘帖到目標(biāo)網(wǎng)站上。
3 在cvs 客戶端設(shè)置一下,它需要一個ssh客戶端,putty就可以。
以Eclipse為例:
- wizard: new project-> projects from cvs
- 輸入cvs驗(yàn)證信息
- 點(diǎn)擊config connection preferences,在出現(xiàn)的對話框里面選擇“use another connection method type to connect",將connect type置為extssh。點(diǎn)擊下面的ssh2配置鏈接。
- 接著配置ssh,在general tab中選擇ssh2 home,這兒可以用putty的安裝目錄,在下面的private key中加入第一步生成的private key。
- ok,確定。