不然我一個早上都再建立sourceforge上的家目錄中的.ssh資料夾,
再丟入authorized_keys 實在很蠢
sourceforge 上的文件實在太長了,小J我英文實在不怎樣..
翻一早上文件總算找到了之前看到的部份,
原來他只有短短幾行敘述 ,被我忽略掉了
All SourceForge.net services that are accessed via SSH will make use of the same set of (one or more) keys.
All SSH key data is managed using the links from the Account Services page on the SourceForge.net site. [1]
登入後你將會看到
Number of SSH Shared Keys 的欄位
然後點下這個地方,將會轉跳至
把你的ssh key 貼進來這裡
然後
使用
ssh -t yoursourceforgeaccount ,yourproject@shell.sourceforge.net create
example :
ssh -t batman,ezilla-project@shell.sourceforge.net create
應該就可以無密碼登入了 (可能需要稍等一會,約估1分鐘)
當然最重要的是 web 的更新,
所以利用不用密碼的特性。
就可以使用crontab來更新 sourceforge上的網頁。
由於小J需要將把外部主站上資訊定時更新至其他的mirror站台
所以就使用rsync 來更新至sourceforge上。(script 放置於Evernote, 有需要者再來信詢問)
[1] https://sourceforge.net/apps/trac/sourceforge/wiki/SSH%20keys
沒有留言:
張貼留言